PPWIZARD is a free preprocessor for HTML, REXX, Visual Basic or any text files.
Bd2Date() |
This is an inbuilt function function provided by PPWIZARD.
This function takes a basedate and this is converted to a human readable formatted date. This routine would be used if you wished to display a past or future date.
The parameters are:
EXAMPLE |
#DefineRexx '' ;--- Get basedate for tomorrow --- @@DbTomorrow = basedate() + 1 ;;Add 1 day to todays basedate ;--- Create formatted dates for tomorrow --- @@Fd1 = Bd2Date(@@DbTomorrow) @@Fd2 = Bd2Date(@@DbTomorrow, "%A") @@Fd3 = Bd2Date(@@DbTomorrow, "%D") @@Fd4 = Bd2Date(@@DbTomorrow, "%x") ;--- Display values on console --- call say 'Basedate = ' || @@DbTomorrow call say 'Default = ' || @@Fd1 call say 'Week Day = ' || @@Fd2 call say 'MM/DD/YY = ' || @@Fd3 call say 'Pretty = ' || @@Fd4 #DefineRexx