Use of Show when to display a text field for today or future date

I need to display a text field ,if the date selected is today or Future date.

Can anyone help with the code.

Note: Future date can be after 5 month also 

Am able to display text if selected date is today.

Here is my code:

showWhen:if(local!selectedDate= today(),true,false) 

 

I know we can do something like today()+5 for 5 days from today

is there any better way

  Discussion posts and replies are publicly visible