Description

string date(int $timestamp, string $format = 'Y-m-d H:i:s', string $language = 'en')

Formats a language specific date.

Parameters

int $timestamp
The timestamp that you want to apply the format to.
string $format = 'Y-m-d H:i:s'
The optional format that you want to apply on the provided timestamp.
string $language = 'en'
The optional language that you want this format in (Check SpoonLocale for the possible languages).

Return values

string - The formatted date according to the timestamp, format and provided language.

Comment