Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sql date for msaccess

Status
Not open for further replies.

neoxaml

Programmer
Apr 24, 2009
5
US
Is there a sql way to convert data "01/04/2008 1430" to appear as 2008/04/01?
 
In msacces you may use something like this:
SELECT Mid(yourTextField,7,4) & Mid(yourTextField,3,4) & Left(yourTextField,2)
FROM yourTable

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
txs, ended up doing the following:

Mid(left(Job.LastModified, 10), 5, 8) & '/' & Mid(left(Job.LastModified, 10), 3, 2) & '/' & Mid(left(Job.LastModified, 10), 1, 2)

AS Dates
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top