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 Apps / Date format for Excel
Power Apps
Answered

Date format for Excel

(0) ShareShare
ReportReport
Posted on by 21

Hello,

I am working on my first app wich is a simple form validation with Excel as a data source.

I am having issues with one of the date format and oddly enough I have another that works fine!

Here is the issue

Gatchaman_1-1642439114564.png

Power Apps sends and ISO 8601 date to Excel but Excel then reads it 

2022-01-19T23:00:00.000Z

not only adding an unwanted timestamp and zone but also using utc timezone and substracting 1hr to my day pulling it to the day before!

It seems I am far from the first to encounter that issue and I have been roaming the forums from thread to thread, but while I more or less understand what causes the issue I have yet to find a working solution.

 

I have tried many configurations without success (the fact that I am a newbie does not help!)

 

I saw on another similar topic a solution that I tried to apply

Here is my card

Gatchaman_2-1642439616854.png

And the datepicker setting in it

Gatchaman_3-1642439692403.png

I understand the idea was to force a date and time to Excel to have it display the proper format wich for my need is dd/mm/yyyy 

 

If you have any suggestion or even better a solution it would be greatly appreciated as I have been stuck on this long enough!

 

The other thing I don't quite understand to my ever boiling frustrastion is why one field works as intended and not the other!

Gatchaman_4-1642440062097.png

Gatchaman_1-1642439114564.png

 

Anyway sorry to make yet another topic on the subject, but I'll be sure to share any solution I find working for future peolple with that issue!

 

Categories:
I have the same question (0)
  • Gatchaman Profile Picture
    21 on at

    So to add a little to the excitement. 

    From what I understood Excel reads both columns as text but when imported in PowerApps one is seen as datefield and the other as plain text (wich seem to be working fine)

    Gatchaman_0-1642516432564.png

    I don't really understand why because in the excel the columns are similar in configuration.

    But maybe there is a key here to solve this issue. Maybe if there is a way to force power apps to see this field as a text string rather than a date it would send the datpicker data as a text too. solving the problem.

     

    Anyway, any help on this would be greatly appreciated!

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @Gatchaman ,

     

    Any time when you need to use tables from in Excel spreadsheets as the data source of Power Apps, please make sure date columns have already be converted to text type. You could work in Excel to copy date columns and paste them as plain text to text columns, then this table is ready to use. Besides, please be aware that calculated columns are not supported to use in Power Apps.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • Gatchaman Profile Picture
    21 on at

    Hello,

    First thank you so much for taking the time!

    I'm getting desperate here!

    The thing is I am "almost" certain it's already in text format 

    A friend gave me an Excel formula to convert that ISO 8601 into dd/mm/yyyy it goes like this:

    =STXT(L150;9;2)&"/"&STXT(L150!;6;2)&"/"&(GAUCHE(L150!;4))

    it would only work if the cell was in text format.

    But like I say in my second post I suspect that column is in date format. In wich case I'm at a bit of a loss.

    I'm not sure how I can force an Excel column into a format. 

    And as the file is not mine to change (I just build the app around it) I would rather try to fix my issue without altering it.

     

    Thank you for your time @v-jefferni 

  • Verified answer
    Gatchaman Profile Picture
    21 on at

    Well,

    I found a roundabout to my issue (a little while back, forgot to post it here).

    Instead of sending the data directly from the powerApps form with submitForm, I use a flow triggered from onSelect of the button.

    The flow picks string data (and values from select) and feed them with the add a line of the Excel connector.

    Gatchaman_0-1645607655988.pngGatchaman_1-1645607797494.png

     

    Flows seem to be the answer for all those compatibility issues beteween PowerApps and Excel.

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

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 305 Most Valuable Professional

#2
11manish Profile Picture

11manish 212

#3
Valantis Profile Picture

Valantis 167

Last 30 days Overall leaderboard