Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-275

Make Date constructor notation in JsonReader accept the same string representations for a Date as JavaScript does

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • 1.3
    • 1.1
    • None
    • None

    Description

      Right now when parsing "new Date(stringValue)" JsonReader assumes that stringValue can be parsed by .NET's DateTime.Parse method. But JavaScript supports some string representations that .NET does not. Research exactly what JavaScript supports and make JsonReader support all the valid forms.

      Attachments

        Activity

          People

            robert@mongodb.com Robert Stam
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: