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 / New Users / May 2005

Tip: Looking for answers? Try searching our database.

How to convert date to a number (special)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
galsaba - 22 May 2005 20:17 GMT
I have a field - date.  Let's say that one of the values is 6/20/05.
How can I convert it to a number field, for example 6/20/05
will be shown as 20050605?

Thanks,

galsaba
Ofer - 22 May 2005 20:40 GMT
You should use the format function

format(MyDate,"yyyymmdd")

and then you can change it to a number format
' to long format
clng(format(MyDate,"yyyymmdd"))
' to double format
cdbl(format(MyDate,"yyyymmdd"))

> I have a field - date.  Let's say that one of the values is 6/20/05.
> How can I convert it to a number field, for example 6/20/05
[quoted text clipped - 3 lines]
>
> galsaba
 
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.