According to the sqlite3 manual, it says the format should be YYYY-DD-MM.
What if i have a variables with 842, 2, 4, and how to convert into the same format?.
I tried with both the functions, strftime, and date, but it is not padding the value ‘0’, if the digit is single.
Example:
'842-2-4'
needs to be converted to
'0842-02-04'.
1 Answer