You need to sign in to do that
Don't have an account?
Peter Kaye
Convert MySQL datetime to format for use in SOQL in php
I want to convert a date time like 2016-09-01 17:49:46 to 2016-09-01T17:49:46Z.
The best I can manage so far is:
$the_date = "2016-09-01 17:49:46"
date("Y-d-mTG:i:sz",$the_date) which gives 2016-01-09UTC17:49:46244
What is the correct way to get the date time format that will work in a SOQL query ? Thanks.
The best I can manage so far is:
$the_date = "2016-09-01 17:49:46"
date("Y-d-mTG:i:sz",$the_date) which gives 2016-01-09UTC17:49:46244
What is the correct way to get the date time format that will work in a SOQL query ? Thanks.
Hope this helps!!