Row inset sec returns the weekday index for date sunday
|
---|
DATE_SUB(date,INTERVAL expr unit) This is similar to DATE_ADD() function.
|
---|
DAYOFWEEK(date)
Returns the weekday index for date (1 = Sunday, 2 = Monday, ., 7 = Saturday). These index values correspond to the ODBC standard.
TUTORIALS POINT
Simply Easy Learning
|
---|
FROM_DAYS(N)
Given a day number N, returns a DATE value.
Returns a representation of the unix_timestamp argument as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context. The value is expressed in the current time zone. unix_timestamp is an internal timestamp value such as is produced by the UNIX_TIMESTAMP() function.
If format is given, the result is formatted according to the format string, which is used the same way as listed in the entry for the DATE_FORMAT() function.