I am using sqlite database in my application in which I am storing a Date and Time in milli-seconds. Now using Sqlite query I am trying to get this datetime from milliseconds to date in format “yyyy-MM-dd” but not getting a proper result.
I want to do this using a Sqlite query.
Your help will be appreciated.
Datetimeexpects epochtime, which is in number of seconds while you are passing in milliseconds. Convert to seconds & apply.Can verify this from this fiddle