My Business
5.2K members online now
5.2K members online now
For developers who are using the Google My Business API to manage locations
Guide Me

Start Date

Visitor ✭ ✭ ✭
# 1
Visitor ✭ ✭ ✭


i have a problem with datetime when send request for getting report.

i use this code to create start_date   date('Y-m-d\TH:i:s Z');  and it gives me an error "Illegal timestamp format; timestamps must end with 'Z' or have a valid timezone offset."

Format that i should create datetime for example(2016-02-01T00:00:01.045123456Z).

1 Expert replyverified_user

Re: Start Date

Google Employee
# 2
Google Employee

Hi @Mario R,


The error you posted indicates that, the timestamp format you are using is not correct. As per the Google My Business API document, the TimeRange should be in Epoch timestamp for the startTime and the endTime.



The Google My Business API team