IsValidDate
4 min
returns a boolean, the value of which is determined by whether a given date value is a valid or invalid utc date an optional parameter can be included to check if the date is in an hours of operation calendar, for example you may want to check if the given date is a working day syntax isvaliddate() enabled for for a description of the business object categories, see notes on "enabled for" docid\ u26v9fecfs6ilwa0 pvjd business object category yes/no business rules before save rules yes business rules calculation rules (after save, with or without also recalculate on load) yes business rules calculation rules (before save or always, without also recalculate on load) yes business rules calculation rules (before save or always, with recalculate on load) yes business rules editing rules yes business rules initialization rules yes business rules read only rules yes business rules required rules yes business rules validation rules yes client expressions no object permissions no services no ldap no mobile no quick actions (except ui quick actions) yes ui quick actions no reports yes search/dashboard without field references no search/dashboard with field references no parameters parameter description utcdatetime date that must be in utc the date you want to check is valid hopidorname (optional) the name or the id of an hours of operation calendar return value boolean value if the utcdatetime parameter is valid the function returns true, otherwise false if invalid if the hopidorname parameter is included and the date is valid for the calendar (the date falls into a date in the calendar), then the function returns true, otherwise false if invalid (the date does not fall into a date in the calendar) example $(isvaliddate(2022 05 07)) if 2022 05 07 is a valid utc date the returned value is true, otherwise false if the date is not a valid utc date $(isvaliddate(2022 05 07, "weekday working")) if 2022 05 07 is a valid utc date and the date is in an hours of operation calendar named "weekday working", the returned value is true, otherwise false if not in the calendar, or the date is not a valid utc date
