My query returns dates in the following format /Date(1425859200000+0000)/
Timestamp in milliseconds from 1970 I believe.
I need to convert to 01/02/2015… Is there a formatter built into Wappler to handle this or a combination of format conversions?
Hi @patrick
Whilst I can do this with client side formatting using myDate.substring(6, 16).toNumber().toDate().formatDate('dd/MM/yyyy')
I don’t seem to be able to do this within a Server Connect Set Value action
I get as far as myDate.substr(6, 16.toNumber()) but then formatting this to a date format doesn’t show a value.
Hi @patrick
That may be wrong, but if I use your syntax no value is returned. I have to use myDate.substr(6, 16.toNumber()) I am using NodeJS if that helps you check.
So lets say I get a value without the /date e.g 1451692800000+00 how do I format that as a date value?