Definition
date_create(time, timezone)
Parameter | Description |
---|---|
time | Optional. Specifies a date/time string. NULL indicates the current time |
timezone | Optional. Specifies the timezone of time. Default is the current timezone. |
Given following example Return a new DateTime object, and then format the date:
Output : 27/Dec/2021
27-Dec-2021