src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   string date:date(string)
/// </summary>
/// <returns>The date part of the specified date or the empty string if the 
/// date is invalid</returns>
Implements the following function
string date:date(string)
Implements the following function string date : date ( string )
public static string date(string d){
			try{
				string[] dateNtime = DateTime.Parse(d).ToString("s").Split(new Char[]{'T'}); 
				return dateNtime[0]; 
			}catch(FormatException){
			  return ""; 
			}
		}
public static string date ( string d ) { try { string [ ] dateNtime = DateTime . Parse ( d ) . ToString ( " " ) . Split ( new Char [ ] { ' ' } ) ; return dateNtime [ 0 ] ; } catch ( FormatException ) { return " " ; } }
Implements the following function
string date:date(string)
Implements the following function string date : date ( string )
The date part of the specified date or the empty string if the
date is invalid
The date part of the specified date or the empty string if the date is invalid
d
string