How to convert datetime variable to string in JavaScript?

How to convert datetime variable to string in JavaScript?

+3
source share
3 answers

I have had great success with Datejs . This took away a lot of pain.

+4
source

I don't know what DateTime variable you are talking about, so I assume you are talking about Date:

var stringVal = someDateVar.toString();
+3
source
var stringrepresentation = datetimevalue.toString();
+3
source

All Articles