abrev_date (function)
Last updated: Wed, Jan 4, 2023 6:28 am
Return to Knowledgebase
Purpose
A function to return a 2022-01-01 00:00:00 date as Jan 01,2022
Location
users/helpers/deprecated.php
Version Information
First Introduced |
v2.5.0 |
Deprecated |
v5.0.2 |
Parameters
# |
Parameter |
Data Type |
Required |
Description |
1 |
$date |
string |
Yes |
Date in Y-m-d H:i:s format |
2 |
$tz |
string |
Yes |
PHP timezone string in continent/city format |
Returns
Data Type |
Description of Returned Data |
string |
Returns a date in M d,Y format. |
Example
echo abrev_date("2022-01-01 00:00:00", "Africa/Tripoli");
Further Documentation:
This function was legacy from the UserCake days and has been moved to deprecated.php