"createdAt": "2008-06-10T01:31:43" Could i get this date as timestamp?

104 views
Skip to first unread message

Antoine Benevaut

unread,
Mar 14, 2013, 9:54:27 AM3/14/13
to disqu...@googlegroups.com
Hello everybody!

Here a simple request about how to get (understand : Is it possible to change this inside the API / or add timestamp variable)
 createdAt date as timestamp because the current format is really ugly to use inside user views and to manipulate to change the format.

This format is use in all list/details action available on the API.

Thanks to anyone to elevate this topic :D

Burak Yiğit Kaya

unread,
Mar 14, 2013, 11:49:59 AM3/14/13
to disqu...@googlegroups.com
Hi there!

We use the ISO standard date format combined with the awesome moment.js library on the client side and we have no problems about parsing and making it human readable(even localized!). If you are consuming the API on a server, I'm pretty sure you can find methods to parse the ISO standard format.

Hope this helps.

Best,


--
You received this message because you are subscribed to the Google Groups "Disqus Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to disqus-dev+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 



--
BYK

Antoine Benevaut

unread,
Mar 15, 2013, 4:28:55 AM3/15/13
to disqu...@googlegroups.com
Wouu, your comment makes me realize that it is very easy to use format. I wanted to handle it in PHP, I realize that I only have to do strtotime () and presto! a timestamp :)

Thank you for moment.js, I do not know.

---
Although this topic is ultimately not very useful, maybe he will help someone like me who has memory problems-__-'
Reply all
Reply to author
Forward
0 new messages