Navigation:  ThinBASIC Modules > Core (thinBasic Core Engine) > Date and Time >

Day

Previous pageReturn to chapter overviewNext page

 

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