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 Apps - Building Power Apps
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

DateTime for Sharepoint + Outlook

Posted on by 233

Hello,

 

i want to patch a sharepoint list + create outlook element using one date/Time Value,

 

following code creates a datetime value from date picker +  Timepicker(dropdown) and works fine:

 

UpdateContext(
 {
 VarCalStartTime: Text(
 dte_Abw_Startdate.SelectedDate + Time(
 Left(
 dte_starttime.Selected.Value;
 2
 );
 Right(
 dte_starttime.Selected.Value;
 2
 );
 "00"
 );
 "yyyy-mm-dd HH:mm:ss"
 );
 VarCalEndTime: Text(
 dte_Abw_Enddate.SelectedDate + Time(
 Left(
 dte_endtime.Selected.Value;
 2
 );
 Right(
 dte_endtime.Selected.Value;
 2
 );
 "00"
 );
 "yyyy-mm-dd HH:mm:ss"
 )
 }
)

 

Result is following Format: 2023-08-24 00:00:00 --> Outlook Element gets created in the correct way..

for Patching the SharePoint List is use this:

 

 Start_Abwesend: DateTimeValue(VarCalStartTime);
 Ende_Abwesend: DateTimeValue(VarCalEndTime);

 

This Format gets created: 24.08.2023, 00:00:00

Sharepoint List Format seems to be: 24.08.2023 00:00   (no comma and no seconds)

the Date always gets patched correclty, but time value nut - anyone got an idea how i can change the code?
its mandatory keep VarCalStartTime + VarCalEndTime for both "jobs"

 

thanks

Thomas

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 759 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard

Featured topics