Date format conversion


#1

Looking for a little help.
Need to take date data from (YEAR) field in (YYYY-MM-DDTHH:MM:SS) format and move it to (RELEASETIME) field in (DD-MM-YYYY) format.
Something like “2017-04-16T07:00:00Z” to "16-04-2017"
Any advice? :huh:


#2

The YEAR field looks a lot like the proper format for field RELEASETIME. I would not change it at all.
RELEASETIME has both: the day and the hour. And it needs it in the sequence of year-month-day.

So, if you change the order then it might be that you get suprising results esp. when sorting as you then get all first days of all months first, then the second and so on.l


#3

Do have a look into … e. g. …
/t/16556/1
… and follow the ISO 8601 date time standard format,…
especially for the tagfield RELEASETIME.

DD.20170421.1336.CEST


#4

ok so this (DD-MM-YYYY) format is “broken” for (RELEASETIME) field.
but it always could be added in (COMMENT) or somewhere else, so is there a way to convert date somehow?


#5

Create an action of the type “Format value” for COMMENT or somewhere else.
Format string: $regexp(‘2017-04-16T07:00:00Z’,(\d+)-(\d+)-(\d+)T.*,$3-$2-$1)

Instead of the ‘2017-04-16T07:00:00Z’ part of the expression set the source field name, e.g. %year%.


#6

perfect, exactly what I needed, problem solved.
thanks a lot! :laughing: