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 u
And if you're not in the template layer, you can still use the same underlying django utils. Ex:
from django.utils.dateformat import format print format(mymodel.mydatefield, 'U')