How to convert datetime variable to string in JavaScript?
I have had great success with Datejs . This took away a lot of pain.
I don't know what DateTime variable you are talking about, so I assume you are talking about Date:
Date
var stringVal = someDateVar.toString();
var stringrepresentation = datetimevalue.toString();