Navigation:  thinBasic Modules > DT (Date Handling) >

DT_GetWeekDayName

Previous pageReturn to chapter overviewNext page

 

Description

 

Returns the week day name giving the day number.

 

Syntax

 

s = DT_GetWeekDayName(nDayNumber, Type)

 

Returns

 

String. The short or long form of week day name.

 

Parameters

 

Name

Type

Optional

Meaning

nDayNumber

Number

No

Day number from 1 to 7 where 1 is Monday and 7 Sunday.

Type

Number

No

Specify the name form request. It can be one of following:

 

Type

Meaning

%DT_USE_LONG_FORM

Will return 3 letter week day name

%DT_USE_SHORT_FORM

Will return full week day name

 

 

Remarks

 

Restrictions

 

See also

***

DT_GetWeekDay, DT_GetMonthName

 

Examples

 

MSGBOX 0, DT_GetWeekDayName(DT_GetWeekDay("06-13-05"), %DT_USE_SHORT_FORM) '---results "Mon"