M
Maarkr
I imported a spreadsheet where they didn't format date values... so i get
dates including 12/12/2006, 1/1/2006, 12/1/2006, 1/12/2006 (all mo/day/yr)
and I'm trying to import them in as a date value. Here's what I did that
works until I get a 1/1/2006 type of entry
Format(DateSerial(Right([f1],4),Left([f1],InStr([f1],"/")-1),Mid([f1],InStr([f1],"/")+1,InStrRev([f1],"/")-4)),"mm/dd/yyyy")
so the year and month is no prob; I just need help with the middle 'day'
value when they can be 1 or 2 digits....thanks
dates including 12/12/2006, 1/1/2006, 12/1/2006, 1/12/2006 (all mo/day/yr)
and I'm trying to import them in as a date value. Here's what I did that
works until I get a 1/1/2006 type of entry
Format(DateSerial(Right([f1],4),Left([f1],InStr([f1],"/")-1),Mid([f1],InStr([f1],"/")+1,InStrRev([f1],"/")-4)),"mm/dd/yyyy")
so the year and month is no prob; I just need help with the middle 'day'
value when they can be 1 or 2 digits....thanks