Weaver
Well-known Member
- Joined
- Sep 10, 2008
- Messages
- 5,197
I'm importing a text file via VB using a recorded version of the "import external data" routine. The data consists of dates and times but they're stored with "." rather than "/". So I used find/replace to switch the "." for "/" and all was okay, unless there's a possibility of interpreting the date in US format. So 31.05.2011 becomes 31/05/2011 (31st May), but 01.06.2011 (1st June) becomes 06/01/2011 (6th Jan) and so on. Assuming I'd rather not convert each cell one at a time, is there a way round this? The default date formatting for the system is the UK version and I set the numberformat for the column with the dates in to dd/mm/yyyy hh:mm before doing the search replace, to no effect.
Any ideas? I think must be missing something obvious.
Any ideas? I think must be missing something obvious.