date_20formatting_20extended_20functionality

Date$ Formatting - Extended Functionality

LBB has extended functionality when using Date$() .

LBB will return the date in any format that can be constructed from the following elements, in any order, separated by '/' or '-':

d
Day of month as digits with no leading zero for single-digit days.
dd
Day of month as digits with leading zero for single-digit days.
ddd
Day of week as a three-letter abbreviation.
dddd
Day of week as its full name.
m
Month as digits with no leading zero for single-digit months.
mm
Month as digits with leading zero for single-digit months.
mmm
Month as a three-letter abbreviation.
mmmm
Month as its full name.
y
Year as last two digits, but with no leading zero for years less than 10.
yy
Year as last two digits, but with leading zero for years less than 10.
yyyy
Year represented by full four digits.

For example,

  Print date$("dddd dd-mmmm-yyyy")

Would output:

Sunday 30-January-2012
This website uses cookies. By using the website, you agree with storing cookies on your computer. Also you acknowledge that you have read and understand our Privacy Policy. If you do not agree leave the website.More information about cookies
date_20formatting_20extended_20functionality.txt · Last modified: 2024/01/05 00:22 by 127.0.0.1