django tempalte tag datetime to timestamp

Solutions on MaxInterview for django tempalte tag datetime to timestamp by the best coders in the world

showing results for - "django tempalte tag datetime to timestamp"
Josefa
13 Sep 2016
1{% now "U" %}
2
3The "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:
4
5{{ value|date:"U" }}