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

Grid column dateTime format

Thread ID:





141204 Nov 29,2018 02:32 PM UTC Feb 14,2020 10:29 AM UTC Angular - EJ 2 3
Tags: Grid
Asked On November 29, 2018 02:32 PM UTC


I'm trying to apply DateTime formatting, but I'm not getting expected output as it shown in documentation.

Expected output: 

Actual output: 

I did reproduce this in one of your demos:

Madhu Sudhanan P [Syncfusion]
Replied On November 30, 2018 04:34 AM UTC

Hi Domantas,  

Thanks for contacting Syncfusion support. 

The format property should be assigned with these objects as follows. 

        field: 'OrderDate', 
        headerText: 'Order Date', 
        format: { type: 'dateTime', format: 'dd/MM/yyyy hh:mm a' }, 

Please check the below modified sample. 

Madhu Sudhanan P 

Imran Asmal
Replied On February 13, 2020 02:47 PM UTC

Thanks. I did used this format. but after that I got nothing show up. Even no error message. I show it works in your demo. 

Do you have a function template for a column?

Balaji Sekar [Syncfusion]
Replied On February 14, 2020 10:29 AM UTC

Hi Imran, 
From validating your query, we suspect that you are maintaining a Date column value as string in your Grid dataSource. For example: when you try to convert the string to date object using new Date() method it will return as invalid date. 
So we suggest you to maintain you date column value as Date object in your Grid dataSource to overcome the issue. 
If we misunderstood anything wrongly, Please get back us with the following details 
  1. Please share your Grid dataSource
  2. Share the Video demonstration of the issue
  3. If possible please reproduce the issue and share the sample.
  4. Share your complete grid rendering code.
Balaji Sekar 


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