Title: Online service to show date in JSON format
Tags: json;web-services
Question: I am looking for a web service that simply provides me with the current date in JSON format.
Google search brings up absolutely nothing, so I'd like to ask if you know a reliable one.

Here is the accepted answer: Here is the one, this returns time in plain text in UTC.
http://www.timeapi.org/utc/now
This will return time in JSON format
http://www.timeapi.org/utc/now.json
You can specify various timezones in the query itself like
http://www.timeapi.org/pdt/now will give you time in PDT timezone. There are number of other options as well joshua58@example.com.
In order to get the data in JSON format like below
<script type="text/javascript"&gt;
function myCallback(json) {
alert(new Date(json.dateString));
}
</script&gt;
<script type="text/javascript" src="http://timeapi.org/pdt/now.json?callback=myCallback"&gt;</script&gt;
You can also have a look at
http://www.geonames.org/export/ws-overview.html and
Here is the sample output in JSON format.
Comment for this answer: Any idea how this http://www.timeapi.org/utc/now tells the time, like what timezone it uses? I need it to be something like based on the IP address of the requester (if thats possible)
Comment for this answer: Edited the answer for different timezones and JSON format.


{'source': 'StackExchangeDataset', 'subset': 'stackoverflow.com', 'metadata': {'AnswerCount': 1, 'CommentCount': 0, 'ContentLicense': 'CC BY-SA 3.0', 'CreationDate': '2015:00:08/04/15', 'FavoriteCount': None, 'PostTypeId': 1, 'Tags': '<json><web-services>', 'Title': 'Online service to show date in JSON format', 'ViewCount': 624, 'id': 31802769, 'user_AboutMe': '', 'user_AccountId': 6183982.0, 'user_DisplayName': 'Borislav', 'user_Reputation': 899.0, 'user_Views': 100.0, 'user_id': 4818620.0}}