Skip to content

Conversation

@elliott-pd
Copy link

This is based on the PR put forward by @pieceofsummer: #253.

It is on the current master, with all tests passing. There has been a minor code cleanup and a few fixes for tests.

pieceofsummer and others added 10 commits July 27, 2016 10:15
1) Overload for Substring() with single arg now works
2) Overload for Equals() with single arg now works
3) Also added static version of String.Equals()
4) Added some of the overloads for String.Concat()
5) More checks for correct number of arguments
1) Added DateTime.ToString() (via $dateToString)
2) Added support of AddDays(), AddHours(), AddMinutes(), AddSeconds() and AddMilliseconds() operations

AddYears() and AddMonths() are currently not implemented to not overcomplicate requests, while Add() and Subtract() are not implemented because TimeSpan is not convertible to BsonValue
…csharp-driver into better-linq

# Conflicts:
#	src/MongoDB.Driver/Linq/Translators/AggregateLanguageTranslator.cs
Remove IFormat support from DateTime.ToString()
Minor code cleanup
@elliott-pd elliott-pd changed the title Better support for dates and strings in LINQ CSHARP-2445 Improve supported methods of DateTime in LINQ Dec 3, 2018
@jyemin jyemin added the linq label Nov 18, 2020
@rstam rstam self-requested a review February 5, 2024 17:16
@rstam
Copy link
Contributor

rstam commented Feb 7, 2024

Thank you for submitting this PR and our apologies that it took so long to look at it.

I am closing this PR as support for DateTime methods like AddDays etc... is already part of the LINQ3 provider.

@rstam rstam closed this Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants