Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 7653

For questions about the date parameters/values as used by the API and their format. Use this tag as well for questions about dates found in the UI of an SE site if you have a script or app that leverages those dates.

3 votes
Accepted

How do I parse the dates from the API?

The date is in "Unix epoch time", as described in the API-docs, Date Formats section. How you do the conversion depends on what language you are coding in. … Here's one way in javascript: function unixEpochTime_TO_Date_DDMMYY (unixEpochTime, returnUTC) { var year, month, day; var dateObj = new Date (unixEpochTime * 1000); if (returnUTC) { …
Brock Adams's user avatar
6 votes
Accepted

API throws improper error when "date" parameters are the same

However, having the same date may not mean what you think it means. … You probably want results from 2015-02-17, 00:00 AM to 2015-02-17, 12:59 PM, but the "date" parameters are really unix epoch time, so your sample query is giving you just 2015-02-17, 00:00 AM to the nearest …
Brock Adams's user avatar
2 votes
Accepted

bad_parameter when using key with todate?

From the Date Formats doc page: For convenience when doing ad-hoc queries without a key an alternative date format is accepted: YYYY-MM-DD HH:MM:SS, where the hour, minute, and second values are optional … Applications should not ship using this date format (as all applications should ship with a key), it is provided just to ease rapid development. …
Brock Adams's user avatar