cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
U_Idigoras
Level: Powered On

Work with dates in Collections

I am building an app to register employee's trips.

I have 2 date pickers: trip start day and trip end day, simple.

 

The complication is they asked me to count how many work days that employee has lost. But it has to substract weekends and national holidays. For that, I have an Excel table with all the dates I want to substract.

 

The problem is when I import that Excel to PowerApps, it adds some values. For example 10/10/2020 -> 10/10/2020 2:00. 

I imagine it has something to do with time zones or something, I tried changing the format from Excel but nothing.

 

My idea is to make a Collection with ALL the days between the start day and the end day. Then another Collection with all the weekends and holidays, and substract the common values.

 

I've been working on it for hours and I just don't see it.

1 REPLY 1
Community Support Team
Community Support Team

Re: Work with dates in Collections

Hi @U_Idigoras ,

 

It seems that I cannot reproduce your issue. Did you use the Short Date format for the dates columns in excel table?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,384)