Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
let lastexectime = '3/1/2017 10:00:00 AM';
load
*
FROM
[$(DATA_FilePath)$(DATA_FileName)]
(ooxml, embedded labels) where [Modified Date] > '$(lastexectime)' ;
When I used the condition where [Modified Date] > $(lastexectime) without the quotes it throws an error stating garbage value but when I put quotes for the variable it works fine. Can anybody please explain why it works with quotes when $ is already present
to get it as number:
let lastexectime = num(date(ReloadTime()));
Modifed date saves value as 3/1/2017 10:45:00 AM
Are there two spaces there between the date part and the time part or is that me?
Thanks..it worked..I was missing out the num function while comparing it..
Christian provided a solution that worked ..
He suggested to use let lastexectime = num(date(ReloadTime())); and keep the rest of the script as it is.
Thanks for your help..Explanation provided earlier with quotes has been very helpful indeed.
Right, because you are using the LET function. You can also use the SET if you are hardcoding the date instead of using the function.
Good luck!