dotnet / dotnet/efcore

Add EF.Functions.Format for SQL Server string formattting

Open
#32,686 6 comments 0 reactions 0 assignees View on GitHub
area-query area-sqlserver customer-reported
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

When i use Datetime.ToString( ) to format date for group registers by MM/yyyy for example, it would be nice if EF could translate this for native SQL function FORMAT.

Simple example below:
![imagem_2023-12-28_204416464](https://github.com/dotnet/efcore/assets/89602176/5f1cac76-69db-4d31-a288-2c376c7028f1)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.