Pages
Home
Java
Tuesday, July 3, 2012
Date Conversion using PHP using DateTime object
$duedate=Datetime::CreateFromFormat('d-m-y',$this->data['Payment']['duedate']);
$converted_due_date=$duedate->format('Y-m-d);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment