Saturday, August 27, 2011

Script to Convert Date to String

//***************************************************************************                           
    //Created        Created By  Minaresh     
     Description      : This script Converts the inputs date to String .
    //************************************************************************        

function DateToString (cDate)
{
var sDatum = ((cDate.getMonth() + 1) + "/" + cDate.getDate() + "/" + cDate.getFullYear()
+ " " + cDate.getHours() + ":" + cDate.getMinutes()+ ":" + cDate.getSeconds());
return sDatum
}

No comments:

Post a Comment