Validation rule if current or future month is selected?

  • 24 October 2019
  • 2 replies
  • 3 views

Badge +2

Hi,

 

I want to be able to trigger an error message if the selected month = current or future date(month).

Right now I have 

Control is invalid if:

Service Date(Column) == fn-FormatDate(Current Date,MM)

 

Im sure there is a better way to write this rule but would like some help.

Thank you.


2 replies

Badge +12

@SpenSouv ......what's the value you get from service date? Complete date with time or just the month and if it's just the month then what's the value?

 

Also in formatdate function MM should be in double quotes i.e. "MM".

Badge +2
Sorry, I figured it out and used a similar formula in this thread.
https://community.nintex.com/t5/Nintex-for-SharePoint/Validation-rule-to-hide-panel-when-current-month-is-not/td-p/93121

Reply