src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   string date:format-date(string, string)
/// </summary>
/// <param name="date">The date to format</param>
/// <param name="format">One of the format strings understood by the 
/// DateTime.ToString(string) method.</param>
/// <returns>The formated date</returns>
Implements the following function
string date:format-date(string, string)
Implements the following function string date : format - date ( string string )
public static string formatdate(string d, string format){
			try{
				DateTime date = DateTime.Parse(d); 
				return date.ToString(format);
			}catch(FormatException){
				return ""; 
			}
		}
public static string formatdate ( string d , string format ) { try { DateTime date = DateTime . Parse ( d ) ; return date . ToString ( format ) ; } catch ( FormatException ) { return " " ; } }
Implements the following function
string date:format-date(string, string)
Implements the following function string date : format - date ( string string )
The formated date
The formated date
d
string
<not_specific>
format
string
One of the format strings understood by the
DateTime.ToString(string) method.
One of the format strings understood by the DateTime . ToString ( string ) method .
date
<not_specific>
The date to format
The date to format