Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- - Format Date (String)
- - Formats string-time into the human readable format.
- $time - The string-time to convert into human readable time.
- Recommended format is YYYY-MM-DD HH:MM:SS
- */
- public function formatDate($time, $dateOnly = false) {
- $unixTime = strtotime($time);
- return $this->formatDateUnix($unixTime, $dateOnly);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement