web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / The date been added to...
Power Apps
Unanswered

The date been added to sharepoint will be worng incase the user uses Edge, while working well on chrome

(0) ShareShare
ReportReport
Posted on by 3,506

I have a calendar view as follow:-

 

johnjohn123_0-1694986939786.png

 

 

 

and when the user select a date >> and click on add a new entry inside the calendar >> a popup will be shown, here is the formula inside the submit:-

 

 

 

Clear(CollSelectedDaysDetails);
Clear(NewWFHEntry);
ForAll(
 collCheckedDays,
 Collect(
 CollSelectedDaysDetails,
 {
 SelectedDate: ThisRecord.Value,
 SelectedStartTime: Text(
 DateAdd(
 DateValue(ThisRecord.Value),
 If(
 tgAllDayEvent_1.Value,
 ddlHalfDayPart_1.Selected.StartMinutes,
 ddlStartTimeBulk.Selected.Minutes
 )
 ,
 TimeUnit.Minutes
 )
 ,
 DateTimeFormat.UTC
 ),
 SelectedEndTime: Text(
 DateAdd(
 DateValue(ThisRecord.Value),
 If(
 tgAllDayEvent_1.Value,
 ddlHalfDayPart_1.Selected.EndMinutes,
 ddlEndTimeBulk.Selected.Minutes
 ),
 TimeUnit.Minutes
 )
 ,
 DateTimeFormat.UTC
 )
 }
 )
);
ForAll(
 CollSelectedDaysDetails,
 Collect(NewWFHEntry,
 Patch(
 WorkFromHomeEntry,
 Defaults(WorkFromHomeEntry),
 {
 StartTime: ThisRecord.SelectedStartTime,
 EndTime: ThisRecord.SelectedEndTime,
 Title:User().FullName,
 WFHDate:DateValue(ThisRecord.SelectedDate),
 Country: ddlCountryBulk.Selected.Result,
 Department: ddlDepartmentBulk.Selected.Result,
 Notes: txtNotesBulk.Text,
 IsAllDayEvent:tgAllDayEvent_1.Value
 }
 );
);
 
 
Refresh(WorkFromHomeEntry);
Clear(collCheckedDays);
UpdateContext({varShowReservationPopUp: false});

 

 

but when using Edge, if for example i select the value 20 September 2023 then it will be saved inside the SharePoint list named WorkFromHomeEntry as 9 august 2024 ?? so what could be the reason ? while the date will be added correctly when using chrome..

 

Thanks

Categories:
I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,369 Super User 2025 Season 2 on at

    Hello,

     

    Sorry you are having this issue.

     

    Can you do a little test. You mentioned that when they select a date and then they click to add an entry. can you do the following below.

     

    Add a Text Label.

    Set the Text to the SelectedDate of the DatePicker(assumption on my part that you are using this) so you can validate in real-time (and before they submit), what you expect the value to be. 

     

    Because if they click and the UI shows the .SelectedDate as correct, then it would be a bug in the code further down. Now why in Edge and not Chrome. I dont have enough details but hopefully we can help :-)\



    Cheers
    If you like my answer, please Mark it as Resolved, and give it a thumbs up, so it can help others
    Thank You
    Michael Gernaey MCT | MCSE | MCP | Self-Contractor| Ex-Microsoft
    https://gernaeysoftware.com
    LinkedIn: https://www.linkedin.com/in/michaelgernaey

     

     

  • johnjohn123 Profile Picture
    3,506 on at

    @FLMike i am not sure what i need to check exactly ?my assumption is that the DateAdd() with minutes have a bug inside edge..

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 721 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard