[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: |
|
||||||||
| 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: |