my course timezone is MST .I Have submitted assignment of course in 11:30 pm of 12/9/2014(MST)
.But am storing standard timezone in db as US/EASTERN.The differene between MST and US/EASTERN
is 3 hrs.so it is storing in 13/9/2014
.when i trying to get data on 12/09/14 (12:00:00 Am)
according to my system date(IST)
...will be converted into MST and then US/EASTERN
.I am not getting the data....if i choose 13/9/14
then am getting data.
I am using this sql query
<#if selectedDate??>AND sas.SUBMITTED_DATE < (TO_DATE('${toDate?string("dd-MMM-yyyy")}', 'DD-MON-YYYY') + 1) </#if>
If i changed to like this, working fine..but will fail in some other scenario
<#if selectedDate??>AND sas.SUBMITTED_DATE < (TO_DATE('${selectedDate?string("dd-MMM-yyyy")}', 'DD-MON-YYYY') + 2) </#if>...
need to work in all scenarios