Skip to content

Commit 08d2a04

Browse files
committed
initial commit
1 parent 7d374bf commit 08d2a04

File tree

4 files changed

+7319
-2
lines changed

4 files changed

+7319
-2
lines changed

README.md

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,26 @@
1-
jquery-date
1+
jQuery Date Plugin
22
===========
33

4-
Small date wrapper around Microsoft's jQuery globalization plugin.
4+
Small date wrapper around Microsoft's jQuery globalization plugin.
5+
6+
I'm sure there are better solutions out there by now that don't rely on jQuery or jQuery Globalization, but a lot of people keep asking me where this code went so I posted it.
7+
8+
See the [blog post](http://marcgrabanski.com/articles/jquery-date-plugin)
9+
10+
Examples
11+
12+
```javascript
13+
14+
$.date().adjust("M", +3).format("yyyy-dd-MM"); // same as .setFormat("yyyy-dd-MM").format()
15+
16+
$.date().adjust("M", +3).format();
17+
18+
$.date().adjust("D", -3).format();
19+
20+
$.date("October 1, 1984", "MMMM dd, yyyy").adjust("M", 3).adjust("Y", 5).adjust("D", -1).format();
21+
22+
$.preferCulture("ar");
23+
24+
$.date().adjust("M", +3).format();
25+
26+
```

0 commit comments

Comments
 (0)