J
JT
Is it possible to convert a system date in dd/mm/yy format to the a date
variable in the mm/dd/yy format?
variable in the mm/dd/yy format?
JT said:Thanks..........What I want to do is get the date in whatever format the
user's regional settings are set to in a variable. Then I want to take that
result and convert it to a US date, so I can compare it to the date the user
has entered (in a US format).
JT said:Sure.....Users enters the deposit date as mmddyy (080509). The macro
converts this to a string "8/5/09" and then converts it to a date (8/5/2009).
For the US cost centers this works great. Then the macor retrieves the
system date. I then use DateDiff to calculate the number of days between
each date.
The issue is with one cost center in Quebec where some of the machines have
French Canadian Regional settings on their PC.
The "8/5/09" string is converted into 2008-09-05. When this is compared to
the system date (2009-08-05) it is out of the 3 day range and they get an
error; when they shouldn't have.
I'm trying to get the 2 dates in sync so I can make an accurate comparison
Thanks for the help
JT said:Sure.....Users enters the deposit date as mmddyy (080509). The macro
converts this to a string "8/5/09" and then converts it to a date
(8/5/2009).
For the US cost centers this works great. Then the macor retrieves the
system date. I then use DateDiff to calculate the number of days between
each date.
The issue is with one cost center in Quebec where some of the machines
have
French Canadian Regional settings on their PC.
The "8/5/09" string is converted into 2008-09-05. When this is compared
to
the system date (2009-08-05) it is out of the 3 day range and they get an
error; when they shouldn't have.
I'm trying to get the 2 dates in sync so I can make an accurate comparison
Thanks for the help
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.