<input id="Time" onclick="WdatePicker({dateFmt:'HH:mm:ss'})" type="text" >
<script type="text/javascript">
$(function(){
var onlydate=new Date();
var H=onlydate.getHours();
var M=onlydate.getMinutes();
var S=onlydate.getSeconds();
if(onlydate.getHours().toString().length==1){
H="0"+ H;
var onlydate=H+":"+M+":"+S;
$("#Time").val(onlydate)
$("#taskCust_endTime").val(onlydate)
}if(onlydate.getMinutes().toString().length==1){
M="0"+M;
var onlydate=H+":"+M+":"+S;
$("#Time").val(onlydate)
$("#taskCust_endTime").val(onlydate)
}if(S.toString().length==1){
S="0"+S;
var onlydate=H+":"+M+":"+S;
$("#Time").val(onlydate)
$("#taskCust_endTime").val(onlydate)
}else{
var onlydate=H+":"+M+":"+S;
$("#Time").val(onlydate)
$("#taskCust_endTime").val(onlydate)
}
})
</script>