Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Date Time as YYYYMDDHHMMSS inside a Text file

$
0
0
Is there a better way to write date time in YYYYMDDHHMMSS format in a text file using "Write to File" than doing the whole transformation to get System info etc to just get that value? Here is what I've tried
1) Adding a new entry "Datenow" in "set variable" using NOW/ TODAY() /getDate() as value - none of which worked while writing ${Datenow} in file.
2) Using Kettle.Properties to set a variable Datenow and trying to write ${Datenow}

All I want to do is create a text file using data from another file and then add the date in the above format inside the file.

Viewing all articles
Browse latest Browse all 16689


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>