<cDateTime>.BOMonth

<< Click to Display Table of Contents >>

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

<cDateTime>.BOMonth

 

Description

 

Set date to the first day of the month with with an optional offset in months

 

Syntax

 

<cDateTime>.BOMonth[(month_to_add)]

 

Returns

 

None.

 

Parameters

 

Name

Type

Optional

Meaning

month_to_add

Numeric

No

An optional integer expression that specifies the number of months to add or subtract to current date.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

uses "console"
 
dim d0 as new CDATETIME
 
d0.Now
printl d0.DateString
 
d0.bomonth(-1)
printl d0.DateString
 
d0.Now
d0.bomonth(-2)
printl d0.DateString
d0.bomonth(2)
printl d0.DateString
d0.bomonth(-12)
printl d0.DateString
 
waitkey(0, "Press a key to end")