We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

DateSerial (to and from)

rite_eh
rite_eh asked
on
Medium Priority
371 Views
Last Modified: 2012-05-11
Hello,

I need a function that can convert a string to and from the dateserial format (including partial days - see examples below).

40490.6706944444
405250.68

And from (y/m/d h:m:s):

2009/01/01 00:00:01
2010/07/12 17:53:22

The dates are stored in a file so storing them via strings is what is desired if possible.

Thanks in advance for any assistance.
Comment
Watch Question

Billing Engineer
CERTIFIED EXPERT
Most Valuable Expert 2014
Top Expert 2009
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
CERTIFIED EXPERT
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
What about converting from a standard date (ex. yyyy/mm/dd hh:mm:ss) to the serial date format, how could this be done?

Author

Commented:
I managed to perform the latter by using CDec(CDate("yyyy/mm/dd hh:mm:ss")) to give me the date/time in the decimal format. Thanks for the assistance.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.