Using the FormatDateTime() function, you could achieve this result if the regional settings are set to read the values as such. However, since you likely cannot provide that this will always be true, you could just create a sub that would return a string value as you would like. Something akin to the following might work (you need to change to your purposes, but the idea should be here:
Code:
myDate = 3/23/2004 'This can be whatever date you want.
returnDate = day(myDate) & "/" & month(myDate) & "/" & year(myDate)
response.write returnDate
-----------------------------------------------------------------------------------------------------
"If you can't explain something to a six-year-old, you really don't understand it yourself."
-- Albert Einstein
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.