Hi there,
MS Access (2003/2007)
Windows XP
I've looked through the forums but can't find an exact example of this problem.
I have a text file kickout from a European designed system which displays date in the format "DD/MM/YY". In order to compliment most of the systems (setup as "MM/DD/YY"), I set the vba reader to take the middle, left and then right before updating the table. Unfortunately there are some systems that actually have their regional settings to "DD/MM/YY".
How do I either:
a: detect the regional settings to determine the format
b: isolate the month, day, year so that the table field (type date) nows how to handle the date
Expiry = Mid(TempLine, 168, 10) 'position of date
Expiry = Mid(Expiry, 4, 2) & "/" & Mid(Expiry, 1, 2) & "/" & Mid(Expiry, 7, 4) 'current method to handle regional setting of "MM/DD/YY"
Thanks
Aurillius
MS Access (2003/2007)
Windows XP
I've looked through the forums but can't find an exact example of this problem.
I have a text file kickout from a European designed system which displays date in the format "DD/MM/YY". In order to compliment most of the systems (setup as "MM/DD/YY"), I set the vba reader to take the middle, left and then right before updating the table. Unfortunately there are some systems that actually have their regional settings to "DD/MM/YY".
How do I either:
a: detect the regional settings to determine the format
b: isolate the month, day, year so that the table field (type date) nows how to handle the date
Expiry = Mid(TempLine, 168, 10) 'position of date
Expiry = Mid(Expiry, 4, 2) & "/" & Mid(Expiry, 1, 2) & "/" & Mid(Expiry, 7, 4) 'current method to handle regional setting of "MM/DD/YY"
Thanks
Aurillius