ASP Date conversion

Snitz™ Forums 2000
https://forum.snitz.com/forumTopic/Posts/68156?pagenum=1
05 November 2025, 09:24

Topic


Fromafarr
ASP Date conversion
28 January 2009, 07:30


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.<

 

Replies ...


Shaggy
28 January 2009, 07:59


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.
<
Fromafarr
09 February 2009, 05:20


Thanks for that<
Shaggy
09 February 2009, 06:28


You're welcome.
<
© 2000-2021 Snitz™ Communications