I've searched this forum high and low and can't seem to find a formula that will extract the month number from the current date. Does anhybody have some code?This message has been edited. Last edited by: Ted Michalski,
EXCEL, PDF, CSV, TEXT
it might be a smart idea for you to buy a nice book called "(Almost) 1001 Ways to Work with DATES in WebFOCUS" ISBN 978-0-9791722-1-2
It cost maybe 25 U$ and is worth all that dollars.
To answer your question
&YMD gives you the current DATE
&DATEM gives the month number
&DATEMTR gives MONTH
&DATEMtr gives Month
&DATEMT gives M
And there are some more (page 46 of the mentioned book)
In total there are 61 different amper values reprecenting something about the actual system date in different formats.
Also, it depends on what the format of the date is.
If its just getting the current date, then follow Franks suggestion.
If its from a DB, then the format of the date will determine the function used.
I don't go anywhere without that book. It has saved me many times. If you don't listen to anything else any one say, do as Frank says and order the book!
In FOCUS Since 1990
Production 8.2 Windows
|Powered by Social Strata|