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 Apps
Answered

Datepicker

(1) ShareShare
ReportReport
Posted on by 18

Hi,

i have a form with 2 datepickers to select beginning of a period and an ending.

But when i want to show those date on my other form, i get a bunch of numbers like this:

" 1643065200000 - 1674601200000 "

Does anyone know what to do? It should show something like:

"16/12/2000 - 01/01/2023"

 

My current formula is like this (dutch)

LookUp(Verval;'Naam + voornaam'=ThisItem.Result;Begin) & " - " & LookUp(Verval;'Naam + voornaam'=ThisItem.Result;Einde)

Begin & Einde are the names of the 2 datepickers wich are dd/mm/yyyy

 

edit: after some research i have found out it shows the date in EPOCH TIME. 

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @GillesBruyneel 

     

    When I test it with something like this below, I think it gives the values you might want:

     

    1. Use this formula for the Text property of another Label 
    (assuming the value of interest is "1643065200000 - 1674601200000" in the Text property of a Label called Label1 in this example):

    With
    (
     {myItems:Split(Label1.Text," - ")}
     ,$"{Text(Value(First(myItems).Result),"[$-en-US]ddd, dd mmm yyyy hh:mm:ss")} - {Text(Value(Index(myItems,2).Result),"[$-en-US]ddd, dd mmm yyyy hh:mm:ss")}"
    )

     

    poweractivate_0-1667385494276.png

     

    See if it helps @GillesBruyneel  

  • GillesBruyneel Profile Picture
    18 on at

    Hi,

    thank you for the reply. In my case the Label1 is called 'Periode'. When I enter your formula it does not work for me. It gives an error for 'period.text':

    GillesBruyneel_0-1667468986836.png

     

  • Verified answer
    GillesBruyneel Profile Picture
    18 on at

    SOLVED:

    Text(LookUp(Verval;'Naam + voornaam'=ThisItem.Result;Begin); "[$-NL]dd/mm/yyyy") & " - " & Text(LookUp(Verval;'Naam + voornaam'=ThisItem.Result;Einde); "[$-NL]dd/mm/yyyy")

  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    HI @GillesBruyneel,

    Could you please Mark your reply as an answer to help more users?

    Thanks for your cooperation.

  • GillesBruyneel Profile Picture
    18 on at

    ok done

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard