Click here to Skip to main content
15,891,856 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

try this,

XML
<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[^]
 
Share this answer
 
You can't remove the time. You can just format your date.

http://blog.stevenlevithan.com/archives/date-time-format[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900