Author Topic: Date format not working when exporting to excel  (Read 2570 times)

orlando_acevedo

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 27
    • View Profile
Date format not working when exporting to excel
« on: June 22, 2018, 06:31:25 pm »
Date is displaying with the correct format on the screen, but when exporting, the column becomes text and the dates are displayed with format yyyy-mm-ddT00:00:00.00.
Is there something special that needs to be done so that it is exported with the correct format?

Thank you.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Date format not working when exporting to excel
« Reply #1 on: June 23, 2018, 11:34:00 am »
Please share a test case or following

1. Version of grid.

2. column.format

3. column cell value data sample.

4. column.dataType

orlando_acevedo

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 27
    • View Profile
Re: Date format not working when exporting to excel
« Reply #2 on: June 28, 2018, 11:35:27 pm »
Hi. Here is the information:

1. Version 5.1

2. Column.format: "#,###.00"

3. Values are decimal

4. Column.dataType: "float"

Thank you for your help.

Orlando.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6263
    • View Profile
Re: Date format not working when exporting to excel
« Reply #3 on: June 29, 2018, 10:55:10 am »
But your original question was about date column. You have to apply date format to date values.

https://paramquery.com/pro/api#option-column-dataType