|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
You don't need a fax machine to get faxes. Get a fax-to-email fax number from CallWave. Try it free.
|
|
#1
|
|||
|
|||
|
Converting from String to date
I have dates stored in a string field that I need to convert to a date field. This is in MS Access. When I use the CDATE function, I get the following kind of conversions.
032903 becomes 1/30/1990 030203 becomes 9/19/1982 040603 becomes 3/1/2011 I can't find any pattern in these. Is there a way to convert from this string of numbers representing a date into an actual date field? |
|
#2
|
||||
|
||||
|
assuming 21st century...
CDate('20'+mid(stringfield,5,2) +'-'+mid(stringfield,1,2) +'-'+mid(stringfield,3,2)) |
![]() |
| Viewing: Dev Shed Forums > Databases > Database Management > Converting from String to date |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|