开发者

How to convert datetime variable to string in JavaScript?

开发者 https://www.devze.com 2023-02-15 20:27 出处:网络
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 talki

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

精彩评论

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