src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   number date:day-in-month(string)
/// </summary>
/// <returns>The day 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:MonthDay or 
/// xs:gDay types</remarks>
Implements the following function
number date:day-in-month(string)
Implements the following function number date : day - in - month ( string )
public static double dayinmonth(string d){
			try{
				DateTime date = DateTime.Parse(d); 
				return date.Day; 
			}catch(FormatException){
				return System.Double.NaN; 
			}
		}
public static double dayinmonth ( string d ) { try { DateTime date = DateTime . Parse ( d ) ; return date . Day ; } catch ( FormatException ) { return System . Double . NaN ; } }
Implements the following function
number date:day-in-month(string)
Implements the following function number date : day - in - month ( 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
remarks
Does not support dates in the format of the xs:MonthDay or
xs:gDay types
Does not support dates in the format of the xs : MonthDay or xs : gDay types