Support Topics Documentation Slack YouTube Blog

Codeless - how to create a date from an isostring?


(Philippe Homond) #1

Hi,
It is possible to convert a date to an ISOString but what about the reverse ?
Exemple : create a date from “2018-09-23T10:35:35Z”
Thanks.


(Mark Piller) #2

Hi Philippe,

There is no built-in block to do this in a single shot, however, a workaround is available:

  1. Create and save a custom function that looks like this:
  2. In your code re-use the function so the logic looks like this:

You can learn about custom functions from the documentation:
https://backendless.com/docs/codeless/#codeless_developing_a_function

Hope this helps.

Regards,
Mark


(Philippe Homond) #3

Thank you very much, This is working perfectly. I won’t have find it by my own.
:slight_smile: