DATA Methods
Database functions
select(), fetch(), write(), update(), delete(), execute(), tables(), fields()Requests and temporary storage
request(), cookie(), session(), config(), store()Formatting data
encode(), decode(), json(), text(), date(), weekday(), month()Template data
content(), parents(), directory()
weekday()
Show name of weekday, according to language settings and as defined in config file.
string weekday( date sql_date )
Return
Name of weekday.
Parameter
Description
sql_dateSQL formatted date or any other date type value.
Show name of weekday
$DATA->weekday("1999-12-24")
RETURN: 'Friday'
Show weekday of other date type value
$DATA->weekday("24.12.1999")
RETURN: 'Friday'