|
CurrentMonth$ | ||
Month$ = CurrentMonth$([Format =0]) | ||
Parameters: [Format =0] = Optional format paremeter for how the month should be returned |
||
Returns: Month$ = The name of the current month |
||
CurrentMonth$ returns the current month in a string format. The user has some basic format controls to determine the what the function returns. By default the function will return the Month in a threee digit format. So the month November would be returned as "Nov". Format Flags Format Flag =1 = Month name in 3 digit format (Jan,Feb.. Nov,Dec) Format Flag =2 = Month name full (January,February.. November,December) Format Flag =4 = Month index (1 to 12) Format Flag =8 = Month index 2 digit (01 to 12) FACTS: * CurrentMonth$ defaults to returning the month in 3 digit format to remain compatible with older code for PlayBASIC. Tutorial: This example demo's the date functions with various parameter combinations.
Sample Output:
|
Related Info: | CurrentDate$ | CurrentDay$ | CurrentHour | CurrentMinute | CurrentSecond | CurrentTime$ | CurrentYear$ | Timer : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |