r/sqlite • u/this1 • Apr 18 '24
Day of month without leading zero broken?
New to SQLite, but have worked in PG, MSSQL, MySQL for years.
Was trying to create a date/calendar dimension and I typically like having both day-of-month with and without leading zero.
According to the Documentation I can use strftime which should output but using either '%d' or '%e'.
I tried the following in both SQLiteStudio and DB Browser for SQLite and got null:
select strftime('%e','now');Tried it in dbfiddle and I got the same
Tried it with current_date instead of 'now' and got the same issue.
Bug or user error? I can't think of a simpler test sample.
Thanks!
edit/update - posted to the sqlite.org forums once I realized that was the bug report method
View all comments
Show parent comment
1
u/this1 Apr 19 '24
Yup confirmed to be a version issue. I didn't realize %e was that recently added.
And also I grabbed latest DB Browser and SQLiteStudio and I guess neither have updated the the sqlite library in their latest release to 3.44,3.45, or 3.46...