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

Date format lost in Excel table after sometime

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?

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

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

 

View solution in original post

2 REPLIES 2
Super User II
Super User II

@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.

Community Support
Community Support

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

 

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (2,884)