Home » MySQL timestamp() Function

MySQL timestamp() Function

by Online Tutorials Library

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

You may also like