I am exporting data from SQL Server to store in a text field in SQLite on my device using this sql:
CONVERT(VARCHAR, MY_DATETIME, 127) ( where 127 denotes 'yyyy-MM-ddTHH:mm:ss:SSSZ')
All good, SQLite understand this just fine as per the docs. My problem is when I want to use this date in B4A code because:
1. If I set the DateFormat to 'yyyy-MM-ddTHH:mm:ss:SSSZ' I get an error saying the 'T" is invalid
2. If I set the DateFormat to 'yyyy-MM-dd HH:mm:ss:SSSZ' the format is set fine but then I cannot DateParse using this (I am guessing because my data has the 'T' present)
Any ideas on how best to handle this, especially since the 'T' should be present as per ISO8601?
CONVERT(VARCHAR, MY_DATETIME, 127) ( where 127 denotes 'yyyy-MM-ddTHH:mm:ss:SSSZ')
All good, SQLite understand this just fine as per the docs. My problem is when I want to use this date in B4A code because:
1. If I set the DateFormat to 'yyyy-MM-ddTHH:mm:ss:SSSZ' I get an error saying the 'T" is invalid
2. If I set the DateFormat to 'yyyy-MM-dd HH:mm:ss:SSSZ' the format is set fine but then I cannot DateParse using this (I am guessing because my data has the 'T' present)
Any ideas on how best to handle this, especially since the 'T' should be present as per ISO8601?