Forum Discussion

aleung's avatar
aleung
Contributor III
9 years ago
Solved

How to obtain difference btw 2 timestamp?

Any idea how to obtain seconds, minutes, or hours between 2 timestamp?
  • nganapathiraju's avatar
    nganapathiraju
    9 years ago

    In the above example just dont use the quotes, instead send as JSON object!! Otherwise you will get the warning from the platform at runtime.

    Date.now().toLocaleDateString({“timeZone”:“PST”, “format”:“yyyy-MM-dd”})