This is a viewer only at the moment see the article on how this works.
To update the preview hit Ctrl-Alt-R (or ⌘-Alt-R on Mac) or Enter to refresh. The Save icon lets you save the markdown file to disk
This is a preview from the server running through my markdig pipeline
Tuesday, 06 July 2004
This is a common puzzler for people new to .NET (who aren't in the US!), just how do you parse a DateTime to be correct for your culture?
Answer, pretty easily...the DateTime.Parse has an overload which accepts an IFormatProvider, so this will let you parse a DateTime in a named culture:
DateTime.Parse("08/02/1973",new CultureInfo("en-GB"));
The above code being the code for GB - you can get a good list by looking at Internet Explorer -> Tools -> Internet Options -> Languages -> Add .
Using the code below will let you use the culture defined in the Globalization settings in web.config
(e.g., <globalization fileEncoding="utf-8" requestEncoding="utf-8" responseEncoding="utf-8" culture="en-GB" uiCulture="en-GB"/>):
DateTime.Parse("08/02/1973", System.Globalization.CultureInfo.CurrentCulture);
Told you it was easy!
© 2025 Scott Galloway — Unlicense — All content and source code on this site is free to use, copy, modify, and sell.