Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

FormatDateTime

Status
Not open for further replies.

danmat46

Programmer
Nov 13, 2007
23
GB
Morning all,

Got a issue with a expression. Basically using the "Scripting.FileSystemObject" I am trying to create an expression to say (Pseudo code)

If the folder time is >= Now() time -1 then
'This folder has been updated within the last hour
strColour="Green"
elseif the folder time is >=Now() time -3 then
'This folder has been updated within the last 3 hours
strColour="lightGreen"
end if

only problem is when you have a issue like

Folder date time = "22/01/08 23:05"
Now date time = "23/01/08 01:30"

Is 23:05 > 00:30 YES, WRONG!!

Any help with this would be grately received

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top