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

XMLWordPrintableJSON

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

      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
            Reporter:
            Asya Kamsky
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: