开发者

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();
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜