我遇到格式化日期datepicker的问题。 这是代码
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>jQuery UI Datepicker - Default functionality</title>
<link rel="stylesheet" href="css/jquery-ui.css" />
<script src="js/jquery-1.9.1.js"></script>
<script src="js/jquery-ui.js"></script>
<link rel="stylesheet" href="css/style.css" />
<script>
$(function() {
$( "#datepicker" ).datepicker();
alert("date test");
var currentDatef = $.datepicker.parseDate('yy-mm-dd', '22-04-2010');
alert(currentDatef);
});
</script>
</head>
<body>
<p>Date: <input type="text" id="datepicker" /></p>
</body>
</html>
请帮忙。它过去很吵,但我不知道它为什么不起作用
感谢
答案 0 :(得分:2)
使用此
Sub whatever()
Dim r1 As Range, r2 As Range
ActiveSheet.UsedRange
Set r1 = Range(Cells(5, 1), Cells(Rows.Count, Columns.Count))
Set r2 = Intersect(r1, ActiveSheet.UsedRange)
End Sub
而不是
$.datepicker.parseDate('dd-mm-yy', '22-04-2010');