Jump to content

Determining OS date/time format


Recommended Posts

I'm trying to do some date/time operations based on results from _EventLog__Read(), which returns a date/time of an event in the localized time format (dd/mm/yyyy vs mm/dd/yyyy and 12hr vs 24h clock.)

What can I use to figure out what format the OS/Event Viewer is using so I can appropriately convert the timestamp into a more manageable YYYYMMDD HHMMSS format? I've looked through the Date UDFs but haven't found anything that would accomplish this.

Edited by Sunblood
Link to post
Share on other sites

After looking at the _EventLog__Read code, it seems that it generates a static date/time format.  You can use this to convert it in the format of your choice :

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...