Skip to main content
Solved

Convert datetime to string?

  • May 29, 2018
  • 2 replies
  • 448 views

Hey,

If I have a datetime, I'm wondering how I could convert it to a string.

Best answer by erik_jan

The DateFormatter (2017) or DateTimeConverter (2018) transformer can be useful to format the Date into almost any kind of string.

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.

2 replies

philippeb
Enthusiast
Forum|alt.badge.img+22
  • Enthusiast
  • May 29, 2018

Into your writer choose attribute type = string or char


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • Best Answer
  • May 29, 2018

The DateFormatter (2017) or DateTimeConverter (2018) transformer can be useful to format the Date into almost any kind of string.