parse.com-php-library icon indicating copy to clipboard operation
parse.com-php-library copied to clipboard

cant save date to date field in parse

Open kitkat14 opened this issue 11 years ago • 2 comments
trafficstars

kitkat14 avatar Jul 15 '14 19:07 kitkat14

I was able to save a date to date field using

$theDate = date("c", strtotime($_POST["datecollected"]));
$startDate = array("__type"=>"Date","iso"=>$theDate); 

$obj->startdate = $startDate;
$obj->save();

Critter avatar Jul 23 '14 03:07 Critter

hi, I have also same problem now it fixed using above code thanx alot .

srinivaschintala avatar Aug 01 '14 11:08 srinivaschintala