michaelp0730
8/14/2015 - 10:51 PM

DateFormat.cs


@{
    var mdp = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.MonthDayPattern;
    string pattern = mdp.IndexOf('M') < mdp.IndexOf('d') ? "MM.dd.yy" : "dd.MM.yy";
    var eventDate = new DateTime(2015, 09, 29);
}