web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / Extract date-only valu...
Power Pages
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:
I have the same question (0)
  • Verified answer
    gng Profile Picture
    167 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
Valantis Profile Picture

Valantis 59

#2
11manish Profile Picture

11manish 53

#3
Vish WR Profile Picture

Vish WR 29

Last 30 days Overall leaderboard