Date/time :formatted as ISO8601

Could you add ISO8601 format to the list in screenshot below ? Many api’s need and respond in this format for timestamps and we end up having to manually create one.

It seems there is a .toISOstring() javascript method applied to a date which outputs this format.

Also note that bubble doesn’t seem to recognize this type of date format in json response when the server includes milliseconds in the response.

Thanks !

Cannot you do this as custom format?..

Nope… the format involves putting in the letters ‘T’ and ‘Z’. For some reason the custom format automatically changes typed letters to something else e.g. T changes to P.

The current workaround is to split this date into date and time and try to recreate the string:

Saw that this is fixed. Thanks @emmanuel !!

1 Like

In a HTML element that I’m using, I need to enter a date as dynamic data formatted as a standard JavaScript Date class. The only problem is that this involves having a zero based index for months (i.e. 0 = January, 11 = December). Is there any way I can access this format?

You’d be better using date : extract UNIX ms , pass it as a parameter to the constructor.

1 Like