I was wondering if anyone could show me how to use the browser.execJS function to convert a MySQL timestamp into seconds? Simple expressions I'm good on, but this one is not so straightforward (at least to me).
So basically, I'd like to pass a timestamp as text (YYYY-MM-DD hh:mm:ss) and receive seconds back.
My intention is to find the time difference between two timestamps. So alternatively, if simpler, if might be easier to pass two timestamps and get the answer in seconds (timeA - timeB).
I hope someone can help.