Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Download

Date filed to text with format yyyy-MM-dd

  • Mark Krieger
  • Topic Author
  • Offline
  • User
  • User
More
5 years 4 months ago #3501 by Mark Krieger
Date filed to text with format yyyy-MM-dd was created by Mark Krieger
How do I get a date field to a string field with format yyyy-MM-dd 
Trying the date functions with append gets me dates like 2,018-5-6 - with a decimal separator (don't want to change the number formats) and single-digit dates for month and day. And just using a string field with the format yyyy-MM-dd gives just the original field.
Do I need to make a .NET heater for that or is there a built in way?

Thanks
Mark

Please Log in or Create an account to join the conversation.

More
5 years 4 months ago #3502 by FlowHeater-Team
Replied by FlowHeater-Team on topic Date filed to text with format yyyy-MM-dd
Hi Mark,

The solution is quite simple. You just have to define your preferred dateformat in the Adapter settings on the WRITE side. -> General information about usage of Adapters

Attached you´ll find a short example how you can use different format setting in one definition. In your case, you have to switch the certain field DATATYPE to DATE and use the format setting like shown in the screenshot below, that’s all.

In the example, I used also the String Format Heater to demonstrate how youcan mix different formats in one definition.

Note: Because the first WRITE field “String (Adapter)” has no certain DATATYPE (only STRING), FlowHeater use the DATATYPE from the READ side field to format this column with the standard DATETIME format like the second column.



File Attachment:

File Name: datetime-s...rmat.zip
File Size:2 KB

Best wishes
Robert Stark

Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Attachments:

Please Log in or Create an account to join the conversation.

  • Mark Krieger
  • Topic Author
  • Offline
  • User
  • User
More
5 years 4 months ago #3503 by Mark Krieger
Replied by Mark Krieger on topic Date filed to text with format yyyy-MM-dd
Hi Robert

Wow. Just wow. Thank you so much. The attached file shows it nicely how to do it within the adapter or the format heater. Just the right thing for a beginner like me. And it's even easier than In thought.

Thank you
Mark

Please Log in or Create an account to join the conversation.

Time to create page: 0.263 seconds

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Rechtliches

Support & Contact

Kontaktinformation

Telefon:0951 / 99339792 E-Mail:This email address is being protected from spambots. You need JavaScript enabled to view it.

Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.