[ARCHIVED] Date format for an API GET
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2015
11:24 AM
Hello all,
I am playing around with the API reports and I was trying to do the GET for page views. Only I can't seem to get the date format to work. It wants a start date and an end date. I put in the following formats and no luck:
2015-06-01T00:00:00
2015-06-01 00:00:00
2015-0601T00:00:00UTC
Can anyone shine some light on this? Thank you so much!
Shannon Hight
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-13-2015
11:42 AM
shight,
They use ISO8601 format, which is set to UTC rather than local time.
YYYY-MM-DDTHH:MM:SSZ
The T and the Z are the literal characters T and Z.
This is documented in the SIS Imports API: Canvas LMS REST API Documentation
This discussion post is outdated and has been archived. Please use the Community question forums and official documentation for the most current and accurate information.