Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DbFunctions Methods - Please include a FORMAT function for dates #2303

Open
KingsGithub opened this issue Nov 5, 2024 · 0 comments
Open

Comments

@KingsGithub
Copy link

The DbFunctions in EF is useful but unfortunately lacks one thing I see a lot of people need - a way to convert or format date/datetime fields to strings in a specific format - and have that used by the LINQ process in the query itself.
It would be great to be able to use something like dbfunctions.format(someDate[Time], someFormatString) where the formatString makes use of all those pre-defined format pictures, e.g. yyyyMM or yyyy.mm.dd or YYYY.MM.DD HH:MI:SS or whatever.
Right now it's just ridiculously hard - unless of course there's a straight-forward and simple way that I'm just not familiar with????
Please.

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

No branches or pull requests

1 participant