This topic is locked

Date picker

11/24/2007 9:28:51 PM
ASPRunnerPro General questions
L
luic author

I choose dd/mm/yyyy as the date format with Dropdown boxes in the date picker for a date field in Add/Edit page. When I run the application, I find that the dropdown still is displayed as month, day, and year for the dropdowns. How can I change to match with day, month, and year for the dropdown.

Sergey Kornilov admin 11/25/2007

Chris,
put your application to Demo Account and send the URL to support@xlinesoft.com.

L
luic author 11/27/2007

I can't upload the app as it involve SQL Server db. However, I found out the problem in the locale.asp. I made the following change by overriding the value for the format :
function GetLongDateFormat()

dim format, dstart, inquote, dindex, mindex, yindex, i, c, f
format=locale_info("LOCALE_SLONGDATE")

format=locale_info("LOCALE_SSHORTDATE")
It seems that the generator does not create the sshortdate for the format if dd/mm/yy is selected as the date format.