I was going to write a macro which uploads all files changed today via ftp. Here's my dilemna.
With getdate and filedate, one returns the date in the 20050407 format and the other in the 4/7/2005
So how can I easily and reliably compare these strings if they report differently?
getdate & filedate
Moderators: JRL, Dorian (MJT support)
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am
Ah ha. I answered my own question. This is what I came up with, and it seems to work nicely.
FileDate>c:\306.txt,filedate
day>dy
month>mn
year>yr
concat>%yr%,%mn%
concat>%yr%,%dy%
let>today=%yr%
messagemodal>%today% %crlf%%filedate%
if>todayfiledate,end
REMARK>upload routine
messagemodal>match!!
label>end
FileDate>c:\306.txt,filedate
day>dy
month>mn
year>yr
concat>%yr%,%mn%
concat>%yr%,%dy%
let>today=%yr%
messagemodal>%today% %crlf%%filedate%
if>todayfiledate,end
REMARK>upload routine
messagemodal>match!!
label>end
- Dorian (MJT support)
- Automation Wizard
- Posts: 1417
- Joined: Sun Nov 03, 2002 3:19 am