The SQLite datetime()
function enables you to return a date and time value based on a time string and any modifiers.
It returns the date in this format: YYYY-MM-DD HH:MM:SS
To use this function, you need to provide a time string, plus any (optional) modifiers. A modifier allows you to change the date, such as add a number of days, set it to local time, etc
Continue reading