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.
Up to 100,000 records can be processed with the freeware version!
Flowheater Chart

Date filed to text with format yyyy-MM-dd

  • Mark Krieger
  • Topic Author
  • Offline
  • User
  • User
More
6 years 5 days ago #3501 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
6 years 5 days ago #3502 by FlowHeater-Team
Replied by FlowHeater-Team on topic Date filed to text with format yyyy-MM-dd - Post(3502)
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

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

  • Mark Krieger
  • Topic Author
  • Offline
  • User
  • User
More
6 years 4 days ago #3503 by Mark Krieger
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.262 seconds
FlowHeater Logo

FlowHeater - The Data Specialist

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

Legal information

Support & Contact

Contact

Phone:
0951 / 9933 9792

eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.


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