Example #1
0
    public IActionResult DotnetFormattingDates()
    {
        var mgr  = new FormatExampleManager();
        var date = new DateTime(1977, 10, 3, 3, 24, 46, 789, DateTimeKind.Local);

        ViewBag.NavigationZone = NavigationZone.Tools;
        ViewBag.ExampleDate    = date;

        return(View(mgr.GetDateFormatExamples(date)));
    }
Example #2
0
    public IActionResult DotnetFormattingNumbers()
    {
        var    mgr   = new FormatExampleManager();
        double value = 1234.125678;

        ViewBag.NavigationZone = NavigationZone.Tools;
        ViewBag.ExampleDate    = value;

        return(View(mgr.GetNumberFormatExamples(value)));
    }