Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In excel I can create hourly dates over a 24 hour period that rang
from: 1/1/2002 0:00 to 1/1/2002 23:00 Thus it uses military time. By using the format m/d/yyyy h:mm an adding 1/24 each hour. But when I try this in VBA I get: 1/1/2004 0:00 1/1/2004 1:00:00 AM 1/1/2004 2:00:00 AM 1/1/2004 3:00:00 AM 1/1/2004 4:00:00 AM 1/1/2004 5:00:00 AM 1/1/2004 6:00:00 AM 1/1/2004 7:00:00 AM 1/1/2004 8:00:00 AM 1/1/2004 9:00:00 AM 1/1/2004 10:00:00 AM 1/1/2004 11:00:00 AM 1/1/2004 12:00:00 PM 1/1/2004 1:00:00 PM 1/1/2004 2:00:00 PM 1/1/2004 3:00:00 PM 1/1/2004 4:00:00 PM 1/1/2004 5:00:00 PM 1/1/2004 6:00:00 PM 1/1/2004 7:00:00 PM 1/1/2004 8:00:00 PM 1/1/2004 9:00:00 PM 1/1/2004 10:00:00 PM 1/1/2004 11:00:00 PM Is there any way in VBA to express m/d/yyyy h:mm in military time? Thank -- Message posted from http://www.ExcelForum.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Linking computer dates (time) to spreadsheet dates that have formu | Excel Worksheet Functions | |||
Excel not recognizing dates as dates | Excel Discussion (Misc queries) | |||
Calculating number of days between two dates that fall between two other dates | Excel Discussion (Misc queries) | |||
How do I get the dates on an excel chart to stay as dates instead. | Charts and Charting in Excel | |||
Charting data against dates where dates are not at fixed intervals | Charts and Charting in Excel |