Skip to content

Commit eb261b5

Browse files
committed
added date demo
1 parent 08d2a04 commit eb261b5

File tree

5 files changed

+1381
-1
lines changed

5 files changed

+1381
-1
lines changed

README.md

100644100755
File mode changed.

demo.html

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<script src="dependancies/jquery.js"></script>
5+
<script src="dependancies/jquery.glob.js"></script>
6+
<script src="jquery.date.js"></script>
7+
<title>jQuery Date Plugin</title>
8+
</head>
9+
<body>
10+
<p>Look in your dev console.</p>
11+
<script>
12+
console.log( $.date().adjust("M", +3).format("yyyy-dd-MM") ); // same as .setFormat("yyyy-dd-MM").format()
13+
console.log( $.date().adjust("M", +3).format() );
14+
console.log( $.date().adjust("D", -3).format() );
15+
console.log( $.date("October 1, 1984", "MMMM dd, yyyy").adjust("M", 3).adjust("Y", 5).adjust("D", -1).format() );
16+
console.log( $.date().adjust("M", +3).format() );
17+
console.log( $.date("2010-01-01", "yyyy-dd-MM").format() );
18+
</script>
19+
</body>
20+
</html>
File renamed without changes.

0 commit comments

Comments
 (0)