[OpenSIPS-Users] Timestamp in date format

xaled at web.de xaled at web.de
Mon Feb 22 21:00:27 EST 2021


I need to create a timestamp node in an XML body like shown below


I know that there is a get_timestamp function but I need the result to be formatted as date.

BTW, is there a way to directly define XML item value using variable

Something like: 
$xml(my_doc/doc/list) = "<item>$var(value)</item>";

Unfortunately it does not work like this


More information about the Users mailing list