There seems to be 2 main formats for VBScripts - "08-SEP-02" and "9/8/2002". Both seem valid with most of the date routines.
I have the following code to change from the 1st format type to the 2nd, but don't know how to do the reverse.
tom = "08-sep-02"
tom2 = cDate(tom)
response.write("tom = " & tom & "<br>tom2 = " & tom2 & "<br>")
This will give me:
tom = 08-sep-02
tom2 = 9/8/2002
Is there an easy way to do the reverse - change 9/8/2002 to 08-SEP-02?
Thanks,
Tom.
I have the following code to change from the 1st format type to the 2nd, but don't know how to do the reverse.
tom = "08-sep-02"
tom2 = cDate(tom)
response.write("tom = " & tom & "<br>tom2 = " & tom2 & "<br>")
This will give me:
tom = 08-sep-02
tom2 = 9/8/2002
Is there an easy way to do the reverse - change 9/8/2002 to 08-SEP-02?
Thanks,
Tom.