This topic is locked

DATE FORMAT ISSUE

3/25/2004 6:57:08 AM
ASPRunnerPro General questions
B
BCHESKIS author

Is there a way to customise the date format on asprunner?

ie: the date format that I need is MM/DD/YYYY (or DD/MM/YYYY), and NOT

M/D/YYYY (or D/M/YYYY) as Asprunner displays.

For example Jan 1st 2004 will display 1/1/2004 as opposed to 01/01/2004.

Sergey Kornilov admin 3/25/2004

I use FormatDateTime function to display short dates. Here is what documentation says:

Display a date using the short date format specified in your computer's regional settings.


By default short date format on most computers is M/d/yyyy. Theoretically you can change regional settings to display date as MM/dd/yyyy however it won't affect how date is displayed on your remote Web server. If you need bulletproof solution you need to parse date values and display it manually.