unix-timestamp

django Datefield to Unix timestamp

django Datefield to Unix timestamp Question: In a model I have a such field: mydate = models.DateField() now a javascript graph function requires unix timestamp such as “1196550000000”, how can I return the unix timestamp of my mydate input. Thanks Asked By: Hellnar || Source Answers: In your views.py, you can convert the value of …

Total answers: 6