Skip to main content
Solved

Formatting of calculated attributes.

  • December 23, 2019
  • 3 replies
  • 26 views

Hi there,

 

I am calculating four attributes related to date using attribute creator and then I use Datefromatter to convert those attributes into the desired format (i.e. %y%m%d). When I write those attributes into CSV file, I found that the cell format of those attributes is still 'General'. It didn't change to the date format. Could anyone guide me on how to fix the issue?

Best answer by erik_jan

The CSV format does not have other data types than character.

If you would like to be able to define the cell format, I suggest using the Excel writer instead of the CSV writer.

That allows for more formatting of the attributes.

Hope this helps.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • Best Answer
  • December 23, 2019

The CSV format does not have other data types than character.

If you would like to be able to define the cell format, I suggest using the Excel writer instead of the CSV writer.

That allows for more formatting of the attributes.

Hope this helps.


  • Author
  • 30 replies
  • December 23, 2019

The CSV format does not have other data types than character.

If you would like to be able to define the cell format, I suggest using the Excel writer instead of the CSV writer.

That allows for more formatting of the attributes.

Hope this helps.

Thanks for reply. I tried with the excel writer. But the problem still exisit. Still the format of attributes are "general" instead of date.


erik_jan
Contributor
Forum|alt.badge.img+22
  • Contributor
  • 2179 replies
  • December 23, 2019

Thanks for reply. I tried with the excel writer. But the problem still exisit. Still the format of attributes are "general" instead of date.

Using the Excel writer, you can write to a template.

If you have an empty template, with only the headers, you can set the type of the column.

The template will define how the data is stored in that case.

Hope that helps.