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
close icon

DateTime format bug

I have found a bug in DateTime format.
To show date in format like "31-08-2011" I have to use pattern "{0:MM-dd-yyyy}"

When I use format pattern "{0:dd-MM-yyyy}" I get "8-31-2011"

1 Reply

TS Thavasianand Sankaranarayanan Syncfusion Team April 7, 2017 10:59 AM UTC

Hi Michal, 

Thanks for contacting Syncfusion support. 

Query : Found a bug in DateTime format 
 
We have analyzed your query and we suspect that if you mention the format for date as (dd-MM-yyyy) but it is not displayed as “08-31-2011”.  
 
We have checked in our sample and we are unable to reproduce the issue from our end. 

We have prepared a sample and it can be downloadable from the below location. 


Note: In addition that you have mentioned format as “{0:MM-dd-yyyy}” but it displays as the format “31-08-2011”. Format starts with month(MM) but it display the date(31). 

Please provide the following details for better assistance. 

  1. Share the grid code example.
  2. Essential studio version.
  3. Have you mention the date value as string in dataSource?
  4. If possible share the sample or reproduce the issue in the attached sample.

Regards, 
Thavasianand S. 


Loader.
Live Chat Icon For mobile
Up arrow icon