Answers for "django tempalte tag datetime to timestamp"

0

django tempalte tag datetime to timestamp

{% now "U" %}

The "U" is a date format for Unix epoch, and can also be used with built-in date filter. So, if you have the date in a variable:

{{ value|date:"U" }}
Posted by: Guest on May-28-2020

Python Answers by Framework

Browse Popular Code Answers by Language