External data datetime format
Apr 30, 2021
06:03 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Apr 30, 2021
06:03 PM
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.
Solved! Go to Solution.
Labels:
- Labels:
-
Coding
ACCEPTED SOLUTION
Accepted Solutions
May 02, 2021
10:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 02, 2021
10:27 PM
It can be accomplished by Instance methods
Add below to filter
return value.getMonth() + 1 + "/" + value.getDate() + "/" + value.getFullYear()
4 REPLIES 4
May 02, 2021
10:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 02, 2021
10:27 PM
It can be accomplished by Instance methods
Add below to filter
return value.getMonth() + 1 + "/" + value.getDate() + "/" + value.getFullYear()
May 03, 2021
10:25 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 03, 2021
10:25 AM
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
May 03, 2021
09:39 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 03, 2021
09:39 PM
May 04, 2021
02:53 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
May 04, 2021
02:53 PM
Thanks much. This is just what I was looking for.
