Javatpoint Logo
Javatpoint Logo

MySQL Date/Time timestamp() Function

The timediff() is a MySQL date/time function. It is used to convert the expression into datetime/time.

Syntax

Parameter:

Expression : time/datetime value to be converted

Interval : it is optional, it is added into time value

Returns:

This function returns a datetime value.

Example 1

Output:


MySQL Datetime timestamp() Function

Example 2

Output:


MySQL Datetime timestamp() Function
Next TopicMySQL datetime




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA