I have an IF function which compares two dates. I noticed it acts weird when I tried to use regular strings from my data source, so I need to convert them to EPOCH.
In reality I use a SELECT statement to get the correct timestamp from my data source, but for the sake of this post, I wrote it out as a date:
DATE("21-Nov-2017 00:02:01","dd-MMM-yyyy HH:mm:ss")
Instead of the EPOCH time, I get a blank result. I can't figure out what's wrong with my script, I tried playing around with the [format] argument but nothing worked.
What am I doing wrong?