Format datetime


#1

Hello,
i have an other little problem :
I want an xml export datetime like :
2010-12-11T18:14:30
but mp3tag give me
2010-12-11 18:14:30

how can i transform the format ? can i do :

$regexp(%_datetime%,(\d\d\d\d).(\d\d).(\d\d)T(\d\d).(\d\d).(\d\d),$1.$2.$3.$4.$5.$6) ??

The simplest would be to:
%_date%T%_time%
but %_time% don't exist...


#2

Simply replace the one space with letter "T"
$replace(%_datetime%,' ','T')

DD.20121211.1827.CET


#3

:slight_smile: thanks