How to cast float64 to a formatted Date String

What is best practice in Hugo for that?

Something like this should work:

{{ $t := time ($myfloat | int)   }}
{{ time.Format "2 Jan 2006" $t }}

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.