Regular Expression for the Microsoft epoch time format

Regular Expression
^\/Date\(([-]?\d+)([-\+]([01]\d|2[0-3])[0-5]\d)?\)\/$

Sample Date
/Date(1482208500000-0600)/

The date value is GMT+0. The time zone is in RFC 822 time zone format.

This format is mentioned in Json.NET.
http://www.newtonsoft.com/json/help/html/datesinjson.htm
https://msdn.microsoft.com/en-us/library/system.runtime.serialization.json.datacontractjsonserializer(v=vs.110).aspx

This web site convert epoch time.
http://www.epochconverter.com/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s