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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.3
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • Labels:
      None
    • Fully Compatible
    • Query 2018-02-12, Query 2018-02-26

      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.

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

              Created:
              Updated:
              Resolved: