You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have Receipt table that I am trying to SELECT data from by conditions in DATE datatype column.
The format in Browser (WebSQL) like this:
DateIssue DATE format: Thu Feb 04 2016 23:09:15 GMT+0100 (Střední Evropa (běžný čas))
My query:
tx.executeSql('SELECT ri.ProductId, ri.Name as riName FROM ReceiptItem ri INNER JOIN
Receipt r ON r.ID = ri.ReceiptId WHERE
r.DateIssue >= ? AND r.DateIssue <= ? GROUP BY ri.ProductId', [dateFrom, dateTo], function..
[dateFrom] Mon Feb 01 2016 23:59:59 GMT+0100 (Střední Evropa (běžný čas))
[dateTo] Mon Feb 29 2016 23:59:59 GMT+0100 (Střední Evropa (běžný čas))
No records get selected. Is SQLite supporting standard JS date data type?
This is how I parse the input date:
//Parse TO DATE
var dTo = $scope.data.dateTo;
dTo.setHours(23, 59, 59);
var toParsed = Date.parse(dTo);
var dateToFull = new Date(toParsed);
The text was updated successfully, but these errors were encountered:
I have Receipt table that I am trying to SELECT data from by conditions in DATE datatype column.
The format in Browser (WebSQL) like this:
DateIssue DATE format:
Thu Feb 04 2016 23:09:15 GMT+0100 (Střední Evropa (běžný čas))
My query:
[dateFrom]
Mon Feb 01 2016 23:59:59 GMT+0100 (Střední Evropa (běžný čas))
[dateTo]
Mon Feb 29 2016 23:59:59 GMT+0100 (Střední Evropa (běžný čas))
No records get selected. Is SQLite supporting standard JS date data type?
This is how I parse the input date:
The text was updated successfully, but these errors were encountered: