NDBC said:
I just tried this and it worked
If Now() > "20/08/2009 3:32pm" Then
but
If Now() > "20/08/2009 15:32" Then
didn't work.
What's going on there? Is it converting Now() to a string using the
user's locale, and then comparing it to your hard-coded string in your
locale? Or does the string get converted to a Date value and then
compared? I think you need to protect your code from locality issues
by explicitly formatting the date and comparing, e.g.
If Format(Now(), "yyyy-mm-dd") >= "2009-08-20" Then
Phil Hibbs.