Salesforce

DateInCalendar (Magic xpi 4.13)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

DateInCalendar (Magic xpi 4.13)

The function accepts Calendar name and Date value as the input. This function will check if the date value provided is added under the given Calendar name.

Syntax:

DateInCalendar( Alpha CalenderName, Date date )

Parameter:

calendarName : Name of the Calendar

date : A date

Returns:

Returns numeric value as defined below:

0 if the Date exists in the given Calendar

1 if the Date does not exist in the given Calendar

-1 if the Calendar Name does not exist

Example:

DateInCalendar('Holiday_Calender' ,'01/01/2020'DATE)

See also:

Century, Calendars

Reference
Attachment 
Attachment