common.js
// takes a text date and tries to convert it to a date object
takes a text date and tries to convert it to a date object
takes a text date and tries to convert it to a date object
function GetDate(txtDate)
{
    var myDate = new Date(txtDate);
	if(isNaN(myDate.getTime()))
	{
		myDate = new Date(ConvertAtomDateString(txtDate));
		if(isNaN(myDate.getTime()))
		{
		    return null;
		}		
	}
	return myDate;
}
function GetDate ( txtDate ) { var myDate = new Date ( txtDate ) ; if ( isNaN ( myDate . getTime ( ) ) ) { myDate = new Date ( ConvertAtomDateString ( txtDate ) ) ; if ( isNaN ( myDate . getTime ( ) ) ) { return null ; } } return myDate ; }
takes a text date and tries to convert it to a date object
takes a text date and tries to convert it to a date object