从标准日期格式中删除时间 [英] Removing Time From standard date format
本文介绍了从标准日期格式中删除时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何从以下格式中删除时间(11:44:11)。请帮我解决
var网格日期=7月12日星期五11:44:11 UTC + 0530 2013;
提前致谢
Dharma M
Hi,
How can i remove the time(11:44:11) from the below format. Kindly help me to solve
var Grid date = "Fri Jul 12 11:44:11 UTC+0530 2013";
Thanks in advance
Dharma M
推荐答案
试试这个,
try this,
<script type="text/javascript">
function update(){
var datefield = document.getElementById("myTextBox_CWPWORKLIST.DUE_DATE").value;
alert(datefield);
var columnname = dateFormat(datefield, "dd-mm-yy");
alert(columnname);
}
</script>
http://w3schools.invisionzone.com/index.php?showtopic=46466 [ ^ ]
您无法删除时间。你可以格式化你的日期。
http:/ /blog.stevenlevithan.com/archives/date-time-format [ ^ ]
You can't remove the time. You can just format your date.
http://blog.stevenlevithan.com/archives/date-time-format[^]
这篇关于从标准日期格式中删除时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文