How to convert datetime variable to string in JavaScript?
How to convert datetime variable to string in开发者_如何学编程 JavaScript?
I've had a lot of success with Datejs. It took away a lot of pain.
I have no idea what kind of DateTime variable you're talking about, so I'll assume you're talking about Date
:
var stringVal = someDateVar.toString();
var stringrepresentation = datetimevalue.toString();
精彩评论