ASP Date conversion - Posted (1281 Views)
Starting Member
Fromafarr
Posts: 7
7
Hi,
I have a simple form that has datepickers attatched to 2 textbox's. The date pickers are set to a dd/mm/yyyy format but the webserver has a m/dd/yyyy format. Because my script has to check the 1st date against the current date this causes obvious problems. Could anyone kindly tell me how to convert the webserver date to my date format. Thanks in advance.<
 Sort direction, for dates DESC means newest first  
 Page size 
Posted
Support Moderator
Shaggy
Posts: 6780
6780
At the start of your script, you need to set the locale ID to that of the UAE, like so:

session.lcid=14337
To set it for a different country, see the decimal value next to the relevant country here.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
Posted
Starting Member
Fromafarr
Posts: 7
7
Thanks for that<
Posted
Support Moderator
Shaggy
Posts: 6780
6780
You're welcome.
<
Search is your friend “I was having a mildly paranoid day, mostly due to the
fact that the mad priest lady from over the river had
taken to nailing weasels to my front door again.”
 
You Must enter a message