从标准日期格式中删除时间
问题描述:
如何从以下格式中删除时间(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[^]