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 Platform Community / Forums / Power Apps / Date field passing 13 ...
Power Apps
Unanswered

Date field passing 13 digit figure

(0) ShareShare
ReportReport
Posted on 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:
I have the same question (0)
  • Verified answer
    v-mengmli-msft Profile Picture
    on at

    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

  • CU17121522-0 Profile Picture
    10 on at

    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?

  • v-mengmli-msft Profile Picture
    on at

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

     

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard