SQLite and dates

To get leading zeros for 1 digit months and days you could use this procedure

Taifun