XDateA Modern JavaScript Date Library          Albert Guo          2012/12/06
Introduction   • XDate is a thin wrapper around     JavaScripts native Date object that     provides enhanced functionalit...
Where to download   • http://arshaw.com/xdate                               3
Requirements   • 1. Straightforward to get current date and     format it   • 2. Easy to do add days and get expected     ...
Prerequisite   • Import xdate.js in <head></head>                                        5
Straightforward to get currentdate and format it     Creates a new XDate      with the current date            and time   ...
Straightforward to get current              date and format it – cont.htmlJS function                                     ...
Easy to do add days and getexpected result     Creates a new XDate      with the current date            and time      Cal...
Easy to do add days and getexpected result – cont.                   2012/12/6 + 30 days                                  ...
Easy to do add days and get              expected result – cont.HTMLJS function                                           ...
Upcoming SlideShare
Loading in …5
×

XDate - a modern java-script date library

1,095 views
929 views

Published on

XDate is a thin wrapper around JavaScript's native Date object that provides enhanced functionality for parsing, formatting, and manipulating dates

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,095
On SlideShare
0
From Embeds
0
Number of Embeds
201
Actions
Shares
0
Downloads
2
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

XDate - a modern java-script date library

  1. 1. XDateA Modern JavaScript Date Library Albert Guo 2012/12/06
  2. 2. Introduction • XDate is a thin wrapper around JavaScripts native Date object that provides enhanced functionality for parsing, formatting, and manipulating dates. It implements the same methods as the native Date, so it should seem very familiar. • Also, it is non-destructive to the DOM, so it can safely be included in third party libraries without fear of side effects. 2
  3. 3. Where to download • http://arshaw.com/xdate 3
  4. 4. Requirements • 1. Straightforward to get current date and format it • 2. Easy to do add days and get expected result 4
  5. 5. Prerequisite • Import xdate.js in <head></head> 5
  6. 6. Straightforward to get currentdate and format it Creates a new XDate with the current date and time Call toString to do formatting 6
  7. 7. Straightforward to get current date and format it – cont.htmlJS function 7
  8. 8. Easy to do add days and getexpected result Creates a new XDate with the current date and time Call adding method 8
  9. 9. Easy to do add days and getexpected result – cont. 2012/12/6 + 30 days 9
  10. 10. Easy to do add days and get expected result – cont.HTMLJS function 10

×