src/umbraco.presentation.xslt.Exslt/ExsltDatesAndTimes.cs
/// <summary>
/// Implements the following function
///   string date:date-time()
/// </summary>
/// <returns>The current date and time or the empty string if the 
/// date is invalid </returns>
Implements the following function
string date:date-time()
Implements the following function string date : date - time ()
public static string datetime(string d){		
			try{
				return DateTime.Parse(d).ToString("s"); 				 
			}catch(FormatException){
				return ""; 
			}
		}
public static string datetime ( string d ) { try { return DateTime . Parse ( d ) . ToString ( " " ) ; } catch ( FormatException ) { return " " ; } }
Implements the following function
string date:date-time()
Implements the following function string date : date - time ()
The current date and time or the empty string if the
date is invalid
The current date and time or the empty string if the date is invalid
d
string