Day current time for function using excel vba
25,992
To format the current time to your specs try
MsgBox Format(Now(), "hh:mm AMPM")
Author by
Devendar
very much interested to learn new languages, but i am lazy - postpone is the word coming everyday in my life
Updated on March 27, 2020Comments
-
Devendar over 4 years
searched on Google I found one. Is it possible to format time in [h]:mm format using VBA?
Dim currentTime As Date currentTime = TimeOfDay
I passed
currentTime
into database when I dumped data - showing put put as00.00.00.000000
not understood why its showing different? Is there any other function to call current time00.00 AM/PM