User Tools

Site Tools


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 for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information
date_20formatting_20extended_20functionality.txt · Last modified: 2018/04/21 09:03 by richardrussell