Skip to Content
avatar image
Former Member

Check required on Validation on Save for Future Dates

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Nov 03, 2016 at 02:50 PM

    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

    Add comment
    10|10000 characters needed characters exceeded