DaysInYear  
 
 

Returns the number of days in a year.

See also Day, DayOfWeek, DayOfWeekAsString, DayOfYear, DaysInMonth, DaysInYear, FirstDayOfMonth, and IsLeapYear.

 
 
  Syntax  
 
DaysInYear(date)

date

Any date.

 
 
  Usage  
 

DaysInYear is aware of leap years.

Years less than 100 are interpreted as 20th century values.

When passing a date/time value as a string, make sure it is enclosed in quotes. Otherwise, it is interpreted as a number representation of a date/time object, returning undesired results.





 
 
BackUp LevelNext
 
 

allaire     AllaireDoc@allaire.com
    Copyright © 1998, Allaire Corporation. All rights reserved.