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 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 240

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 94

#2
WarrenBelz Profile Picture

WarrenBelz 82 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics