Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 651 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 651 Bytes

GetBroswerTimeZone

A simple library to get the broswer time zone and display clients local time.

Install

NuGet Pre Release

Useage

Include <script src="_content/GetBroswerTimeZone/TimeZone.js"></script> in your _Host.CsHtml file

<UTCToLocal Date="DateTime.UtcNow" Pattern="MMMM dd" /><br />
<UTCToLocal Date="DateTime.UtcNow" /><br />
<UTCToDateTime TimeZone="Eastern Standard Time" Date="DateTime.UtcNow" Pattern="MMMM dd" /><br />
<UTCToDateTime TimeZone="Eastern Standard Time" Date="DateTime.UtcNow" /><br />