cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Lana
Helper II
Helper II

Extract time from the Date time output

Hello,

 

I converted the time to the way I want. Now I want to extract just the time into a variable. 8:24 PM in a variable. 

How can I do that?

Lana_0-1596075001324.png

 

Thank you in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mira_Ghaly
Dual Super User II
Dual Super User II

@Lana 

Did you try using the Format  String to be Short Time Pattern as below ,, this will extract the time part only

Mira_Ghaly_0-1596080007887.png

If this post helps you with your problem, please mark your as Accepted solution.

 

If you like my response, please give it a Thumbs Up.

 

MG (Naturally Curious)

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

3 REPLIES 3
Mira_Ghaly
Dual Super User II
Dual Super User II

@Lana 

Did you try using the Format  String to be Short Time Pattern as below ,, this will extract the time part only

Mira_Ghaly_0-1596080007887.png

If this post helps you with your problem, please mark your as Accepted solution.

 

If you like my response, please give it a Thumbs Up.

 

MG (Naturally Curious)

 

If this post helps you with your problem, please mark your as Accepted solution.If you like my response, please give it a Thumbs Up.

Blog: here

View solution in original post

You could also use the substring function to extract the portion that you want. Oddly enough, I wrote a blog post about it yesterday: https://powerplatformpod.com/2020/07/28/environment-variables-part-3-and-bonus-substring-function/

 

Another tool in the tool belt at the very least!

 

Cheers,

 

DC

Thank you so much! I had clearly overlooked that option.

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (891)