Computers & ProgrammingBackend DevelopmentSQL

MySQL NOW Function

The MySQL NOW function is used to display the current date and time. The equivalent function in Microsoft SQL Server is GETDATE.

Syntax

NOW()

Example

SELECT NOW() as [Date / Time]

Results

2011-12-13 20:15:05

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top