Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - General Discussions
Answered

Extract date-only value from an entity list to pass to another form

(0) ShareShare
ReportReport
Posted on by 167

Hi,

 

I have an entity list with a date-only column that I'm trying to extract the date value from in order to set it to another page. I have decided to use LocalStorage to do this. I can do it with strings and numbers but I'm having trouble with dates.

 

I have used data-value in other data types but it's a bit tricky for dates as seen below.

gospa_0-1671514143167.png

There is the option of using aria-label but I'm hesitant that it might not be the best thing to use.

gospa_1-1671514264427.png

 

Thank you!

 

 

Part 

Categories:
  • Verified answer
    gng Profile Picture
    167 on at
    Re: Extract date-only value from an entity list to pass to another form

    For anyone wondering, here is the solution I found.

     

          var dateToFormat = new Date(1672444800000);
          var newDateFormat= (dateToFormat.getMonth() + 1) + '/' + dateToFormat.getDate() + '/' +  dateToFormat.getFullYear();

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Fubar Profile Picture

Fubar 69 Super User 2025 Season 1

#2
oliver.rodrigues Profile Picture

oliver.rodrigues 49 Most Valuable Professional

#3
Jon Unzueta Profile Picture

Jon Unzueta 43