Day
4 min
returns the utc date and time interval of the entire day that is the number of days specified earlier than or later than the specified date and time syntax day(numdays, basedatetime, timezone) 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 yes object permissions yes services yes ldap yes mobile yes quick actions (except ui quick actions) yes ui quick actions yes reports yes search/dashboard without field references yes search/dashboard with field references yes parameters parameter description numdays (optional) the number of days before or after the date and time specified by the basedatetime parameter if not specified or 0, uses the interval containing the date and time specified by the basedatetime parameter can be either a positive integer, to indicate days after the default interval, or a negative integer, to indicate days before the default interval basedatetime (optional) the base date for the function if not specified, uses the default date which is the current date and time timezone (optional) the time zone, in iana format returns value datetime interval in utc time example $(day(4)) if today is april 10, 2014, this function returns the datetime interval of the entire local day of april 14, 2014 (4 days after april 10, 2014) $(day( 4)) if today is april 10, 2014, this function returns the datetime interval of the entire local day of april 6, 2014 $(day(10, mydate)) if the value of the mydate parameter is anytime during april 10, 2014, this function returns the datetime interval of the entire local day of april 20, 2014 $(day( 4, now(), "africa/cairo")) if today is april 10, 2014, this function returns the datetime interval of the entire local day of april 6, 2014 in the africa/cairo time zone
