Swiss/German Date notation with dots instead of slashes

Swiss/German date notation uses "." instead of "/" is there any way to achieve this with a grid component?

change display or keyboard language | ISG D-PHYS Readme Wiki
Image_1228_1697549341660


1 Reply

RR Rajapandi Ravi Syncfusion Team November 3, 2023 12:14 PM UTC

Hi Frank,

Greetings from Syncfusion support. 

Based on your requirement, you want to localize the EJ2 Grid in your project and display the date column in the Grid according to your culture.

 By default, we have used en-US culture in the EJ2 Components. If you want to use different culture in EJ2 Components, you need to load the corresponding CLDR files for the respective cultures. By using setCulture method you can change the culture as you want.

 

import * as cagregorian from './ca-gregorian.json';

import * as currencies from './currencies.json';

import * as numbers from './numbers.json';

import * as timeZoneNames from './timeZoneNames.json';

 

loadCldr(cagregorian, currencies, numbers, timeZoneNames); // load json cldr files

 

setCulture('de'); // Change the culture of Syncfusion component

setCurrencyCode('EUR'); // Change the currency code

 


We have prepared a simple sample for your reference; you can get it from below link.


Sample: https://stackblitz.com/edit/angular-145243-de-format-n7anuk?file=default.component.ts,default.html


Documentation: https://ej2.syncfusion.com/angular/documentation/common/globalization/internationalization


                              https://ej2.syncfusion.com/angular/documentation/grid/global-local#internationalization


Screenshot:



Please get back to us if you need further assistance with this. 


Regards,

Rajapandi R


Loader.
Up arrow icon