Posts: 100
Threads: 45
Joined: Jan 2014
Guys,
I'm trying to convert a date to the American pattern.
I want 01/20/2003, instead of 20/01/2003
How can I do that? I tried:
DATE d="27/01/2003"
d=d-7
str sf=d.ToStrFormat("{MM/dd/yyyy}")
out sf
Posts: 12,075
Threads: 141
Joined: Dec 2002
Macro
Macro2714
DATE d="27/01/2003"
d=d-7
str sf.timeformat("{MM/dd/yyyy}" d)
out sf
or
Macro
Macro2714
DateTime d.FromStr("27/01/2003")
d.AddParts(-7)
str sf=d.ToStrFormat("{MM/dd/yyyy}")
out sf
Posts: 100
Threads: 45
Joined: Jan 2014