Timezone date format question
AnsweredCan anyone give an advice on how to handle displaying dates in a user's country specific date format?
In other words, in the US, we display dates like this:
12/25/2012 (December, 25, 2012)
But I know that other countries will use:
25/12/2012 (December, 25, 2012)
and there may be others...
Anyone have a function that does a dateformat on a date according to the users' timezone in this fashion?
I did find this article that shows what countries use different date/time formats:
http://en.wikipedia.org/wiki/Date_format_by_country
I am outputting the date from a Podio date field and would like to do this for my users based on their Podio timezone...
If there is anything built into the Podio libraries to help with this even better...
Thanks...
Patrick Steil
http://www.podiotools.com
-
We don't build anything into our libraries because programming languages have all the support you need. Since I know you are using PHP you should look at the DateTime class: http://www.php.net/manual/en/book.datetime.php
/ Andreas
Please sign in to leave a comment.
Comments
1 comment