Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Not returning date when today's date is passed

$
0
0

Running Windows, Android

Have the FFox SQL Manager, when I execute the below Qurey in that tool, it returns proper data

select m.type, m.details, m.date, m.time from meals m where m.date = '2013-08-26' order by m.displayorder asc

Run my app which returns that exact string above and have app execute, fail returns yesterdays data. I dont get it. I understand you have to use locatltime, but why would it work when ran in the tool vs app? and how do you pass localtime, when you passing the date directly?, dosent make sense. Help!

var sqlString = 'select m.type, m.details, m.date, m.time from meals m where m.date = "' + getDate("sql") + '" order by m.displayorder asc';

getDate("sql") is my function and returns 2013-08-26


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>