Hi Simon,
Take a look at 'date format' inside vs .net. There are several examples and
a full list of options - here's a few:
MyStr = Format(MyDateTime, "h:m:s") ' Returns "5:4:23".
MyStr = Format(MyDateTime, "hh:mm:ss tt") ' Returns "05:04:23 PM".
mdatestring = mdate.ToString("yyyyMMdd")
HTH,
Bernie Yaeger
"Simon Osborn" <so*****@microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
I'm trying to format a date and time value to a format that is not the
same as in the regional settings.
What I mean is:
Regional setting is set to US "MM/dd/yyyy".
I want to change the format to display as UK "dd/MM/yyyy".
So that I can make some comparisons later on in my program using UK
format.
Everytime I try this I get an error.
Can anyone help me out!