Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32736

Add "onError" and "onNull" options to $dateFromString

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.7.3
    • None
    • Aggregation Framework
    • None
    • Fully Compatible
    • Query 2018-02-12, Query 2018-02-26

    Description

      Since not all strings will successfully parse to legal ISODate, it would help if $dateFromString accepted an option for default value to return on error.

      Attachments

        Activity

          People

            nicholas.zolnierz@mongodb.com Nicholas Zolnierz
            asya.kamsky@mongodb.com Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: