We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Date formatting with week day

Thread ID:





143603 Mar 28,2019 03:37 PM UTC Mar 29,2019 06:45 AM UTC JavaScript - EJ 2 3
Tags: Grid
Mladen Lakic
Asked On March 28, 2019 03:37 PM UTC


I need to format the columns with date to display the weekday: "Th. 03.28.2019". 

How can I do this? What kind of 'format' string I should use?

{ field: 'Date', headerText: 'Date', width: 100, format: { type:'date', format:'dd.MM.yyyy' }, editType: 'datepickeredit', edit: { params: { format:'dd.MM.yyyy' }} },


Thavasianand Sankaranarayanan [Syncfusion]
Replied On March 29, 2019 06:01 AM UTC

Hi Mladen, 

Greetings from Syncfusion support. 

We can achieve your requirement using the format property of columns API in Grid. 

Refer the below code example. 

var data = new ej.data.DataManager(window.orderData).executeLocal(new ej.data.Query().take(15)); 
    var grid = new ej.grids.Grid({ 
        dataSource: data, 
        columns: [ 
            { field: 'OrderID', headerText: 'Order ID', width: 120, textAlign: 'Right' }, 
            { field: 'CustomerName', headerText: 'Customer Name', width: 150 }, 
            { field: 'OrderDate', headerText: 'Order Date', width: 130, format: {type:'date', format:'ccc dd/MM/yyyy'}, textAlign: 'Right' }, 
            { field: 'Freight', width: 120, format: 'C2', textAlign: 'Right' }, 
            { field: 'ShipCountry', headerText: 'Ship Country', width: 150 } 

We have prepared a simple sample in the following stackblitz link. 

Refer the help documentation. 

Thavasianand S. 

Mladen Lakic
Replied On March 29, 2019 06:44 AM UTC

Hi, Thavasianand

Thank you, that's what I need.

Thavasianand Sankaranarayanan [Syncfusion]
Replied On March 29, 2019 06:45 AM UTC

Hi Mladen, 
We are happy that the problem has been solved. 
Please get back to us if you need any further assistance.  
Thavasianand S.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon