Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / August 2005

Tip: Looking for answers? Try searching our database.

date problem

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Trever B - 18 Aug 2005 02:13 GMT
have a text field that contains dates how do I turn into date format?

eg

from      26.05.05    to 26/05/2005

I tried

datecorrect = Format([dateimp],"dd/mm/yyyy")

dateimp = 26.05.05

thanks in advance
Graham Mandeno - 18 Aug 2005 03:11 GMT
Hi Trever

Assuming you have a date format of dd/mm/yy in your computer locale
settings, this should work:

   CDate( Replace( [dateimp], ".", "/" )

Replace changes the dots to slashes and CDate converts the result to a
date/time data type.
Signature

Good Luck!

Graham Mandeno [Access MVP]
Auckland, New Zealand

> have a text field that contains dates how do I turn into date format?
>
[quoted text clipped - 9 lines]
>
> thanks in advance
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.