Localization & DateTime format

Hi,

I used the following link to change the Language dynamically. I encountered a bug and I do not want it to change the DateTime Format by changing the language anymore.

https://blazor.syncfusion.com/documentation/common/localization


Thank you


1 Reply

RS Renjith Singh Rajendran Syncfusion Team April 27, 2022 04:52 AM UTC

Hi Sarah,


Greetings from Syncfusion support.


We suggest you to check this by applying your required format for the DateTime fields using the Format property of GridColumn. Applying below code will apply static format as dd-MM-yyyy for the date columns irrespective of culture.


 

<GridColumn Field=@nameof(Order.OrderDate) Format="dd-MM-yyyy" Type="ColumnType.Date" ...></GridColumn>

 


Please check this suggestion from your side and get back to us if you need further assistance.


Regards,

Renjith R


Loader.
Up arrow icon