[SERVER-32736] Add "onError" and "onNull" options to $dateFromString Created: 17/Jan/18  Updated: 30/Oct/23  Resolved: 22/Feb/18

Status: Closed
Project: Core Server
Component/s: Aggregation Framework
Affects Version/s: None
Fix Version/s: 3.7.3

Type: Improvement Priority: Major - P3
Reporter: Asya Kamsky Assignee: Nicholas Zolnierz
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
is documented by DOCS-11442 Docs for SERVER-32736: Add "onError" ... Closed
Backwards Compatibility: Fully Compatible
Sprint: Query 2018-02-12, Query 2018-02-26
Participants:

 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.



 Comments   
Comment by Githook User [ 21/Feb/18 ]

Author:

{'email': 'nicholas.zolnierz@mongodb.com', 'name': 'Nick Zolnierz', 'username': 'nzolnierzmdb'}

Message: SERVER-32736: Add "onError" and "onNull" options to $dateFromString
Branch: master
https://github.com/mongodb/mongo/commit/1e9e5f85d3d9ae42ea80a48b593be45306724831

Generated at Thu Feb 08 04:31:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.