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

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard