src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   number date:month-in-year(string)
/// </summary>
/// <returns>The month part of the specified date or the empty string if the 
/// date is invalid</returns>
/// <remarks>Does not support dates in the format of the xs:yearMonth or 
/// xs:gYear types</remarks>
Implements the following function
number date:month-in-year(string)
Implements the following function number date : month - in - year ( string )
public static double monthinyear(string d){
			try{
				DateTime date = DateTime.Parse(d); 
				return date.Month; 
			}catch(FormatException){
				return System.Double.NaN; 
			}
		}
public static double monthinyear ( string d ) { try { DateTime date = DateTime . Parse ( d ) ; return date . Month ; } catch ( FormatException ) { return System . Double . NaN ; } }
Implements the following function
number date:month-in-year(string)
Implements the following function number date : month - in - year ( string )
The month part of the specified date or the empty string if the
date is invalid
The month part of the specified date or the empty string if the date is invalid
d
string
remarks
Does not support dates in the format of the xs:yearMonth or
xs:gYear types
Does not support dates in the format of the xs : yearMonth or xs : gYear types