Change a timestamp to a date

time:timestamp_to_date(INT $timestamp, STRING $format="m/d/Y")

// to get day of the week
time:timestamp_to_date(1606163695, "w")
#=> "1"

#===
time:timestamp_to_date(1606163695, 'h-i-s, j-m-y, it is w Day')
#=> "08-34-55, 23-11-20, 3430 3455 1 Monpm20"

#===
time:timestamp_to_date(1606163695, 'H:m:s \m \i\s\ \m\o\n\t\h')
#=> "20:11:55 m is month"

#===
time:timestamp_to_date(1299446702)
#=> "03/06/2011"

Copyright ©2013-2022 SunSed®. All rights reserved.