|
CurrentDay$ | ||
Day$ = CurrentDay$([Format = 0]) | ||
Parameters: [Format = 0] = Optional output format flags |
||
Returns: Day$ = The name of the current day |
||
CurrentDay$ returns the current day in string format. The command inclules an optional format parameter with various built in bit flags to output evertything from the index of the day in two digit, the day of week through to the suffix. All of which allows us to build more interesting day strings. Format Flags Format Bit Flag 1 = Day of the Week long Monday,Tuesday,Wednesday,Thursday, Friday Format Bit Flag 2 = Day of the Week 3 character Mon,Tue,Wed,Thu,Fri,Sat,Sun Format Bit Flag 4 = Day of the Month Index variable length 1, 2, etc etc 31 Format Bit Flag 8 = Day of the Month Index 2 digit. 01, 02 , etc up to 31 Format Bit Flag 16 = Suffix for the day of the month 2 characters (st,nd,rd,th) FACTS: * The bit flags are parsed and built from top to the bottom as per the table above. So if you combined format flag 1 with format flag 8 (currentday$(1+8)), the function would insert the Day of the week in long format followed by the day of the month in 2 digit format. Mini Tutorial:
Example Output
|
Related Info: | CurrentDate$ | CurrentHour | CurrentMinute | CurrentMonth$ | CurrentSecond | CurrentTime$ | CurrentYear$ | Timer : |
|
|||||||||||||||||||||||||||||||||||||||
(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com |