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 246

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard

Featured topics