BoY()
Date to find first day of year, default is DATE()
Syntax
BoY( [<dDate>] ) -> dDateBeginOfYear
Argument
[<dDate>] : Date to find first day of year, default is DATE()
Returns
<dDateBeginOfYear> : Beginning date Of year of given date
Example
PROC MAIN() SETMODE( 25, 80 ) CLS SET DATE GERM SET CENT ON ? "Today is :", DATE() ? "Date of first day of this year :", BOY() ? "Days elapsed in the current year:", DATE() - BOY() ? WAIT "EOF BoY.prg" RETURN // MAIN
Compliance
BoY() is compatible with CT3’s BoY()
Platforms
All
Files
Library is hbct.
See also
BoM(), EoM(), BoQ(), EoQ(), EoY()
Pingback: Harbour Date & Time Functions | Viva Clipper !
Pingback: Harbour All Functions – B | Viva Clipper !