In a VBS script, I need to initialise a variable with a date.
In my country, we usually specify a date with this format : day month year
Here is what I'm trying to do in my VBS script :
Date = #07-06-1973#
MsgBox FormatDateTime(Date, vbLongDate)
but the date I get is July the 6th, where I was expecting June the 7th !
Now, as it seems the first number represents the month, here is what I tried to do :
Date = #13-06-1973#
MsgBox FormatDateTime(Date, vbLongDate)
but now, the first number represents the day ! (I get the following date : June the 13th)
I haven't found a way to force the date format, so that there is no more ambiguity.