DT_GetWeekDayName

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > Obsolete > DT (Date Handling) >

DT_GetWeekDayName

 

This functionality has been made obsolete by newer, better solved CDateTime available directly in core instead.

 

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 full week day name

%DT_USE_SHORT_FORM

Will return 3 letter 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"