LB Booster
Programming >> Language extensions >> DATE$ formats
http://lbb.conforums.com/index.cgi?board=extensions&action=display&num=1328118099

DATE$ formats
Post by Richard Russell on Feb 1st, 2012, 4:41pm

In LB4 DATE$ provides only three formats for returning the date as a string:

Code:
  print date$("mm/dd/yyyy") ' 01/30/2012
  print date$("mm/dd/yy")   ' 01/30/12
  print date$("yyyy/mm/dd") ' 2012/01/30 

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

dDay of month as digits with no leading zero for single-digit days.
ddDay of month as digits with leading zero for single-digit days.
dddDay of week as a three-letter abbreviation.
ddddDay of week as its full name.
mMonth as digits with no leading zero for single-digit months.
mmMonth as digits with leading zero for single-digit months.
mmmMonth as a three-letter abbreviation.
mmmmMonth as its full name.
yYear as last two digits, but with no leading zero for years less than 10.
yyYear as last two digits, but with leading zero for years less than 10.
yyyyYear represented by full four digits.

So for example:

Code:
print date$("dddd dd-mmmm-yyyy") ' Sunday 30-January-2012 

Richard.
Re: DATE$ formats
Post by JosephE on Mar 14th, 2014, 6:00pm

I took the liberty of adding this to the wiki: Date Formatting Extended Functionality