php code to get date part of the timestamp code example Example: only date in php date('Y:m:d', strtotime($date))