cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

External data datetime format

JL_18346
12-Amethyst

External data datetime format

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.

ACCEPTED SOLUTION

Accepted Solutions

It can be accomplished by Instance methods

 

 

Add below to filter

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

 

View solution in original post

4 REPLIES 4

It can be accomplished by Instance methods

 

 

Add below to filter

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

 

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

Thanks much. This is just what I was looking for.
Announcements

Top Tags