cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gatchaman
Frequent Visitor

Date format for Excel

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!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Gatchaman
Frequent Visitor

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.

View solution in original post

4 REPLIES 4
Gatchaman
Frequent Visitor

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!

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.

Community Support Team _ Jeffer Ni

If this post helps, then please consider Accept it as the solution to help the other members find it.

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 

Gatchaman
Frequent Visitor

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.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (1,868)