[ARCHIVED] Date format for an API GET

Jump to solution
shight
Community Novice

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

Labels (1)
1 Solution
James
Community Champion

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

View solution in original post