CalStartDate function

The CalStartDate function takes a calendar name and returns a DATETIME value that contains the start date of that calendar.

Syntax

CalStartDate(cal_name    lvarchar)
returns datetime year to fraction(5);
cal_name
The name of the calendar.

Description

The equivalent API function is ts_cal_startdate().

Returns

The start date of the specified calendar.

Example

The following example returns the start dates of all the calendars in the CalendarTable table:
select c_name, CalStartDate(c_name) from CalendarTable;