Skip to Content
0

Check required on Validation on Save for Future Dates

Nov 03, 2016 at 10:46 AM

82

avatar image
Former Member

Hello,

We have a extended opportunity BO and created some custom date fields, now we have a requirement wherein we need to put a check on these date fields should not be future date

I have already defined the message text if the date is entered as future date but I need help to build up logic on Validation on save

Thanks,

Surjeet Bhati

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Horst Schaude
Nov 03, 2016 at 02:50 PM
0

Hello Surjeet,

Just use the library function "Context.GetCurrent***Date" to get the current Date.

You can then compare the customer date field via the "Date.LessEquals".

HTH,
Horst

Share
10 |10000 characters needed characters left characters exceeded