Product Documentation

FairCom Direct SQL for C and C++

Previous Topic

Next Topic

ctsqlDayOfWeek

Retrieves the day of the week from a date value.

Declaration

int ctsqlDayOfWeek(SQLDATE date)

Description

ctsqlDayOfWeek() retrieves the day of the week given a date value.

  • date the date value.

Return

ctsqlDayOfWeek() returns the day of the week as an integer value ranging from 0 to 6 where 0 represents Sunday, 1 represent Monday and 6 represents Saturday.

TOCIndex