【发布时间】:2012-02-29 12:40:58
【问题描述】:
请查看这些日期时间值的格式:
var from = "2012-01-13 T11:00:00";
var to = "13 Jan 2012 11:00am";
在上面的例子中,如何编写一个将“from”格式的值转换为“to”格式的值的javascript函数,两者都是文本中的日期时间值。
var to = convertDateTime(from);
function convertDateTime(from)
{
// how to implement this?
}
非常感谢,
【问题讨论】:
-
希望这篇文章对你有所帮助。 stackoverflow.com/questions/758999/…
标签: javascript html datetime