Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
src
.gitattributes
.gitignore
AspNetBrowserLocale.sln
LICENSE.txt
NuGet.config
README.md
build.cmd

README.md

AspNetBrowserLocale

Provides functionality for showing DateTime information respecting the time zone of the users browser using Razor.

NuGet Version NuGet Download Count

Usage (Razor)

In _Layout.cshtml or a similar file, add the following:

@using RimDev.AspNetBrowserLocale

@Html.InitializeLocaleDateTime()

Then, for each DateTime (or, nullable DateTime) value you wish to display:

@using RimDev.AspNetBrowserLocale
@{
    var myDateTime = new DateTime(2015, 1, 1);
}

@Html.BrowserDisplay(myDateTime)

License

MIT

You can’t perform that action at this time.