cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Dubmaker
New Member

Date-picker issues with format and excel

Hi community!

 

I am a beginner, struggling with some basics:

 

I have a date picker in a form. When trying to save the value to an Excel spreadsheet, I am told that the expected format is a string and that my submitted value is incorrect.

I traced the form and apparently, the submitted value is "desired_go_live": 1612047600000

I set the date-picker format to ShortDate, but it does not seem to have any effect.
What am I doing wrong?
 
Thanks
 
/Klaus
4 REPLIES 4
VijayTailor
Resident Rockstar
Resident Rockstar

HI @Dubmaker,

For this requirement - First, you have to change the text formate in the Excel file and Save the Date as a text from the Power app.

Like below. Text(DatePicker.SelectedDate);

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay



Hi Vijay,

 

thank you for your quick answer. Unfortunately no change.

I changed the format in the App designer to Text(DateValue4.SelectedDate) 

Now, when I start the app, the starting value is no longer a date, but a number. I selected a date and submitted the form. This is what is being sent:

 

Dubmaker_0-1602260750041.png

Thx

 

/Klaus

Hi @Dubmaker ,

For DIsplay Date - You can use like below.

DateValue(ThisItem.DateColumn)

Please just cross-check you changed or not Column formate as text in Excel and please save the file after the change.

Thanks,


Thanks,

Hi Vijay,

 

Thank you for trying to help. I can confirm that ALL columns in the Excel file are set to "text". I am however not sure that is the problem. The error is that the data submitted from the app is numeric. According to the form in the data (as reflected in the trace and shown in the screenshot attached earlier), the app is sending a number, not a string.

 

I also noticed that many other fields in the form are being ignored completely. That is a different issue, but it seems my form is messy as it is.

 

Thank you

 

/Klaus

Helpful resources

Announcements
User Groups Public Preview

Join us for our User Group Public Preview!

Power Apps User Groups are coming! Make sure you’re among the first to know when user groups go live for public preview.

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (51,301)