The SQLite datetime() function is used to retrieve current date and time in 'YYYY-MM-DD HH:MM:SS' format.
Syntax:
datetime(timestring, [ modifier1, modifier2, ... modifier_n ] )