like php date("Y-m-d",$value) in javascript code example
Example: like php date("Y-m-d",$value) in javascript
$value = DateTime::createFromFormat('D M d Y H:i:s T +',$z);
$value = DateTime::createFromFormat('D M d Y H:i:s T +',$z);