Day

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Core Language > BuiltIn Functions > Date and Time >

Day

 

Description

 

Extracts day in month from string containing DD/MM/YYYY pattern

If used without parameter, returns current day in current month directly.

 

Syntax

 

n = Day[(DateTimeStamp)]

 

Returns

 

Number in range 1..31

 

Parameters

 

Name

Type

Optional

Meaning

DateTimeStamp

String

Yes

Value containing DD/MM/YYYY pattern

 

Remarks

 

Restrictions

 

The passed DateTimeStamp must follow the mentioned signature, otherwise incorrect result can be returned.

 

See also

 

Now, Month, Year, Hour, Minute, Second

 

Examples

 

 

Long dayToday = Day(Now)

Long dayFromString = Day("Let's meet on 12/06/2015")

Long dayTodayDirect = Day