[英]good jquery/javascript date and time picker for this format?
I can't find a good jquery date and time that displays my selected date and time like this 我找不到像这样显示我选择的日期和时间的良好的jQuery日期和时间
11-Aug-2010 12:30:38
. 11-Aug-2010 12:30:38
。 Any good one you have seen... 你见过的任何好人...
http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/ http://blog.w3visions.com/2009/04/date-time-picker-with-jquery-ui-datepicker/
http://haineault.com/media/jquery/ui-timepickr/page/ http://haineault.com/media/jquery/ui-timepickr/page/
http://keith-wood.name/timeEntry.html http://keith-wood.name/timeEntry.html
http://www.ama3.com/anytime/ http://www.ama3.com/anytime/
One of these link helps you 这些链接之一可以帮助您
Not the prettiest, but this works: 不是最漂亮的,但这可行:
function getDateStr()
{
var d=new Date();
var m=new Array('Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec');
return len(d.getDate())+'-'+m[d.getMonth()]+'-'+d.getFullYear()+' '+len(d.getHours())+':'+len(d.getMinutes())+':'+len(d.getSeconds());
}
function len(s)
{
if((s+' ').length<3)
{
return '0'+s;
}
return s;
}
Call getDateStr() to receive the date in that format. 调用getDateStr()以该格式接收日期。
http://jqueryui.com/具有最佳的日期选择器IMO!
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.