Skip to main content
12-Amethyst
April 30, 2021
Solved

External data datetime format

  • April 30, 2021
  • 1 reply
  • 2198 views

Hi everyone,

I've created a "thing" with a property named ExpirationDate with a basetype of DateTime.  I the date displaying in an experience.

The issue is the date displays as "2021-04-30T21:54:03.225Z".  Is there a way to change the format so the data appears as month/day/year(e.g. 4-30-2021)?

Thanks in advance.

Best answer by dsgnrClarK

It can be accomplished by Instance methods

 

 

Add below to filter

return value.getMonth() + 1 + "/" + value.getDate() + "/" + value.getFullYear()

 

1 reply

16-Pearl
May 3, 2021

It can be accomplished by Instance methods

 

 

Add below to filter

return value.getMonth() + 1 + "/" + value.getDate() + "/" + value.getFullYear()

 

JL_1834612-AmethystAuthor
12-Amethyst
May 3, 2021

Thanks for the response.  You mention to add it to the filter, but what filter are you referring?  I don't see a filter in either composer or Studio.

 

thanks