src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   string date:month-abbreviation(string)
/// </summary>
/// <returns>The abbreviated name of the month 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
string date:month-abbreviation(string)
Implements the following function string date : month - abbreviation ( string )
public static string monthabbreviation(string d){
			try{
				DateTime date = DateTime.Parse(d); 
				string month = date.ToString("MMM");
				string[] splitmonth = month.Split(new Char[]{' '});
				return splitmonth[0].Substring(0, 3);;
			}catch(FormatException){
				return ""; 
			}
		}
public static string monthabbreviation ( string d ) { try { DateTime date = DateTime . Parse ( d ) ; string month = date . ToString ( " " ) ; string [ ] splitmonth = month . Split ( new Char [ ] { ' ' } ) ; return splitmonth [ 0 ] . Substring ( 0 , 3 ) ; ; } catch ( FormatException ) { return " " ; } }
Implements the following function
string date:month-abbreviation(string)
Implements the following function string date : month - abbreviation ( string )
The abbreviated name of the month of the specified date or the empty string if the
date is invalid
The abbreviated name of the month 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