Convert Long Date from text to date format

Please support our MS Access and FileMaker Pro advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Reply

Join Date: Mar 2008
Posts: 63
Reputation: Cosa is an unknown quantity at this point 
Solved Threads: 0
Cosa Cosa is offline Offline
Junior Poster in Training

Convert Long Date from text to date format

 
0
  #1
26 Days Ago
Hi,

I recently imported about 18,000 records from filemaker into access. I initially exported the data as a csv file, i then opened it with excel and saved it as an xls spread sheet. Once i cleaned all the data i proceeded to import it into access, however i now have the problem that a date field is in text format.

The date is in a long date format eg. Tuesday, 26 August 2003

I tried changing the format to date, but access then deletes all the records. Is is possible to convert these text dates to the date format?
Reply With Quote Quick reply to this message  
Join Date: Oct 2009
Posts: 24
Reputation: MeSampath is an unknown quantity at this point 
Solved Threads: 7
MeSampath's Avatar
MeSampath MeSampath is offline Offline
Newbie Poster
 
0
  #2
9 Days Ago
Hi,

few thoughts on this issue;

1) Trim the day in the long date.
2) update the date field to date using DateValue function
for ex:
select DateValue("26 August 2003") will return "8/26/2003".

all these can be done using sql statements.

Good luck.
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC