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 / General 1 / April 2006

Tip: Looking for answers? Try searching our database.

Time Of Day From a time

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
sh.t - 13 Apr 2006 00:28 GMT
Anyone know how to calulacute the time of day, ie hour 1-24 for a time
stored in a database, using just a time in a record???

Dennis Mason
N6PDB
dennis@bonnydoonfire.org
MGFoster - 13 Apr 2006 03:02 GMT
> Anyone know how to calulacute the time of day, ie hour 1-24 for a time
> stored in a database, using just a time in a record???
>
> Dennis Mason
> N6PDB
> dennis@bonnydoonfire.org

If you stored the time value as a DateTime data type, you can display it
in 24hr time using the Format() function:

  Format(time_column,"hh")

In Debug window:

  ? format(now(),"hh")
    19

Now() is 4/12/2006 7:01:11 PM.   1900 = 7PM.

Signature

MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

 
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.