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 lost in Ex...
Power Apps
Answered

Date format lost in Excel table after sometime

(1) ShareShare
ReportReport
Posted on by 2

Dears

I ask for some help, I have a issue with power apps and a table of excel  I have some fields into a Date format in power apps and into a  Excel table.

E1.png

 I save the register as Date Format as DD/MM/YY HH:MM  like this:

And after some days it changes as a General format

E2.png

And  another cases it changes into the UTC format

E3.png

I'm looking for the option to keep the date format as show.

Do you have any idea to solve this? Can you help me please?

Categories:
I have the same question (0)
  • poweractivate Profile Picture
    11,078 Most Valuable Professional on at

    @RecillM 

     

    You may want to check the DateValue, TimeValue, and DateTimeValue functions here (docs.microsoft.com reference) . 

     

    Other than this above, you could let us know what formulas you were using for the fields in and we might try to check it further.

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi@RecillM,

    Based on the issue that you mentioned, do you want to save the date format like "DD/MM/YY HH:MM" to the Excel table?

    Could you please share a bit more about the scenario, how you configure your app?

    I suggest you add a DatePicker, HourPicker, MinutePicker to save your date and time.

    Here is my scenario, please take a try as below.

    Add 3 general columns within the Excel table as follows:

    40.png

    Create an app and connect the Excel table to it.

    Insert a Date picker for date select, one Dropdown(HourDropdown1) for hour select, one Dropdown(MinutesDropdown1) for minute select. These three controls are used to store the StartDate column values.

    Set the Items property of the HourDropdown1 and MinutesDropdown1 as below:

     

    ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23"] // Set for the HourDropdown1
    ["00","01","02","03","04","05","06","07","08","09","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59"] // Set for the MinutesDropdown1

     

    Repeat the above formula for the controls used to store the EndDate column values.

    Add a TextInput for entry the 'ID Ticket'.

    Add a Button and set the OnSelect property as below:

     

    Patch(
     Table1,
     Defaults(Table1),
     {
     StartDate: Text(
     StartDatePicker.SelectedDate + Time(
     Value(HourDropdown1.Selected.Value),
     Value(MinutesDropdown1.Selected.Value),
     0
     ),
     "[$-en-US]dd/mm/yy hh:mm"
     ),
     EndDate: Text(
     EndDatePicker.SelectedDate + Time(
     Value(HourDropdown2.Selected.Value),
     Value(MinutesDropdown2.Selected.Value),
     0
     ),
     "[$-en-US]dd/mm/yy hh:mm"
     ),
     IDTicket: TextInput1.Text
     }
    )

     

    Note: Table1 is my Excel table name.120801Gif.gif

    Hope it could help.

    Best Regards,

    Qi

     

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 494

#2
WarrenBelz Profile Picture

WarrenBelz 352 Most Valuable Professional

#3
11manish Profile Picture

11manish 323

Last 30 days Overall leaderboard