Skip to main content

Notifications

Community site session details

Community site session details

Session Id : ozzOcS2CJgQcUFTNDoLS6U
Power Apps - Building Power Apps
Answered

Date field passing 13 digit figure

Like (0) ShareShare
ReportReport
Posted on 4 Jan 2024 00:30:46 by 10

I have an excel database as the source document for a power app. Folks can enter new data in the power app and it populates into the excel. Originally, the date field when entered in Power Apps passed through correctly in the format of mm/dd/yyyy.

Now if I try to view data in a power app gallery a numeric date such 45344 instead of 2/22/2024 displays. I thought it was an excel issue so I reformatted excel. The dates showed up correctly in excel but still not in Power App. I tried a few other methods but now the date is displaying numbers like 1706680800000 and 1709186400000.

Not sure, where I may have messed up. I’m still fairly new to Power Apps so troubleshooting isn’t my forte.

Below is the Patch function I’m using to tie two Power App forms together to pass data back to excel. Not sure if that is where the issue may lie.

 

T_EntryData is the table the information is submitted to

varFormData is a variable created so that in the gallery when you pull up data as either “view” or “edit” the individual forms display in either view or edit mode

BasicEntryForm first form screen that data is entered

TimelineEntryForm second form screen data is entered

ResultScreen is a screen after submission that allows user to choose if they want to create a new entry or go to the home page

BlueAndOrange24_0-1704328180436.png

 

Categories:
  • v-mengmli-msft Profile Picture
    on 04 Jan 2024 at 07:23:07
    Re: Date field passing 13 digit figure

    Hi @BlueAndOrange24 ,

     

    When we open this setting in PowerApps:

    vmengmlimsft_0-1704352910953.png

    The date column in excel is automatically converted to date format, I'm not sure what happened to your PowerApps or Excel table. But there's a way to turn it into a date.

    Text(1706680800000,"[$-en-US]mm/dd/yyyy")

     

  • CU17121522-0 Profile Picture
    10 on 04 Jan 2024 at 06:29:35
    Re: Date field passing 13 digit figure

    Thanks! So this solved one issue in that figures such as 45344 are now displaying as mm/dd/yyyy in the gallery.

     

    I'm not sure though why new dates that are added are still defaulting to longer 13 digit figures like 1706680800000?

  • Verified answer
    v-mengmli-msft Profile Picture
    on 04 Jan 2024 at 01:33:09
    Re: Date field passing 13 digit figure

    Hi @BlueAndOrange24 ,

     

    Please go back to previous format which shows 45344 and use the following formula:

    Text(DateAdd(Date(1900,1,1),Value(ThisItem.DateColumnName)-1,TimeUnit.Days),"mm/dd/yyyy")

     

    Best regards,

    Rimmon

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,765 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started