src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   number date:day-in-year(string)
/// </summary>
/// <returns>The day part of the specified date or the empty string if the 
/// date is invalid</returns>
Implements the following function
number date:day-in-year(string)
Implements the following function number date : day - in - year ( string )
public static double dayinyear(string d){
			try{
				DateTime date = DateTime.Parse(d); 
				return date.DayOfYear; 
			}catch(FormatException){
				return System.Double.NaN; 
			}
		}
public static double dayinyear ( string d ) { try { DateTime date = DateTime . Parse ( d ) ; return date . DayOfYear ; } catch ( FormatException ) { return System . Double . NaN ; } }
Implements the following function
number date:day-in-year(string)
Implements the following function number date : day - in - year ( string )
The day part of the specified date or the empty string if the
date is invalid
The day part of the specified date or the empty string if the date is invalid
d
string