The SQLite date() function is used to fetch the date and show it in 'YYYY-MM-DD' format.
Syntax:date(timestring, [ modifier1, modifier2, ... modifier_n ] )
Syntax:
date(timestring, [ modifier1, modifier2, ... modifier_n ] )