cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Show Label when date is approaching

Hi All,

 

I need your help, on How to I show the Warning Label when Date label Approaching?

 

Thank you 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Hi @Soly ,

Could you please share a bit more about the "Date label Approaching"?

 

Based on the needs that you mentioned, I agree with @WarrenBelz 'thought almost. Please take a try with it, check if the issue is solved.

 

If you want to show the warning message when a specific date value is approaching, please try the following formula (set the Visible property of the warning message Label):

DateDiff(
         Today(),
         Date(2020, 5, 15)    // Type specific date value here using Date() function
) < 5

Note: The Warning message would show up when the difference between the Today and the Due date is less than 5

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Super User III
Super User III

Hi @Soly ,

If you want to display the Label from (as an example) three days before the current date and you had the date contained in a Form DatePicker control called dpMyDate, you would set the Visible property of the Label

DateDiff(
   dpMyDate.SelectedDate,
   Today(),
   Days
)<4

If in a gallery and the field was MyDate, it would simply be MyDate in the second line.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Highlighted
Community Support
Community Support

Hi @Soly ,

Could you please share a bit more about the "Date label Approaching"?

 

Based on the needs that you mentioned, I agree with @WarrenBelz 'thought almost. Please take a try with it, check if the issue is solved.

 

If you want to show the warning message when a specific date value is approaching, please try the following formula (set the Visible property of the warning message Label):

DateDiff(
         Today(),
         Date(2020, 5, 15)    // Type specific date value here using Date() function
) < 5

Note: The Warning message would show up when the difference between the Today and the Due date is less than 5

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted

It is work, thank you all

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (9,918)