Datetime as a long string

I want to use the date time incl seconds as a unique key. How to parse (format) the date-time so the output is e.g. 28082009132501?
2 answers

You can format a date in microflow using the formatDate function. For example,

formatDateTime($mydate, 'yyyyMMddHHmmss')

This will turn the date into a big string of numbers: 20090828133408.

By the way, formatting and parsing are opposites. Parsing converts text into a structured value (e.g. date time) and formatting converts a structured value into text. So, I think you meant 'format' in your question.


You can use the formateDateTime function call in microflow expressions for this. Please have a look at the Java SimpleDateFormat syntax for the correct notation.