[CSHARP-2079] Improve $dateToString support Created: 31/Oct/17  Updated: 17/Nov/22

Status: Backlog
Project: C# Driver
Component/s: LINQ3
Affects Version/s: None
Fix Version/s: None

Type: New Feature Priority: Minor - P4
Reporter: David Golub Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: skunk
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Case:

 Description   

If you use the ToString function on a DateTime object in an expression tree for an aggregation query without specifying a format string, it will produce an ArgumentNullException. It would also be nice to add support for the shortcut functions such as ToLongDateString and the various single-character format options supported by the .NET Framework.

I've also noticed that MongoDB uses a different format of date/time format strings than the .NET Framework, and there is no translation between them. I'm not sure whether this is a bug or a feature.


Generated at Wed Feb 07 21:41:33 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.