라

Javascript 날짜관련 함수 종결자 - date.js

http://code.google.com/p/datejs/

Syntax Overview

Date.today()                    // Returns today's date, with time set to 00:00 (start of day).

Date.today().next().friday()    // Returns the date of the next Friday.
Date.today().last().monday()    // Returns the date of the previous Monday.

new Date().next().march()       // Returns the date of the next March.
new Date().last().week()        // Returns the date one week ago.

Date.today().is().friday()      // Returns true|false if the day-of-week matches.
Date.today().is().fri()         // Abbreviated day names.

Date.today().is().november()    // Month names.
Date.today().is().nov()         // Abbreviated month names.

Date.today().is().weekday()     // Is today a weekday?

Date.today().addDays(1)         // Add one day (+1).
Date.today().addMonths(-3)      // Subtract three months (-3).

Date.today().add(1).day()       // Add one (+1) day. Supports all date parts (year, month, day, hour, minute, second, millisecond, and weeks)
Date.today().add(-3).months()   // Subtract three (-3) months.

(1).day().fromNow()             // One (1) day from now.
(3).months().ago()              // Three (3) months ago.

var n = 6;
n
.months().fromNow()            // Six (6) months from now.

Date.monday()                   // Returns Monday of the current week.
Date.mon()                      // Abbreviated version of Date.monday()

Date.march()                    // Returns March 1st of this year.
Date.mar()                      // Abbreviated version of Date.march()

Date.today().first().thursday() // Returns the first Thursday of the current month.
Date.today().second().thursday()// Returns the second Thursday of the current month.

Date.march().third().thursday() // Returns the third Thursday in March of the current year.
Date.october().fourth().sunday()// Returns the fourth Sunday in October.

Date.today().fifth().sunday()   // Returns the fifth Sunday in the current month, or throws a RangeError exception if there are not 5 Sundays in the current month.
Date.october().final().sunday() // Returns the final Sunday in October.

Date.january().first().monday() // Returns the first Monday of the current year.
Date.december().final().friday()// Returns the last Friday of the current year.

Date.today().at("6:15pm");      // Returns todays date at 6:15pm.

var time = {hour:18, minute:15};
Date.today().at(time);          // Set time with a config object.

var birthDayParty = {month: 1, day: 20, hour: 20, minute: 30};
Date.today().set(birthDayParty);// Set date and time with a config object.

댓글 3개

오... 멋진데요 이건... php로 누가 안만들어주려나요???
이걸 왜 php로 만들어요;;
다 있어요.
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

8,187건
+
제목 글쓴이 날짜 조회
11-01-08 조회 2,594
11-01-08 조회 2,565
11-01-07 조회 3,170
11-01-07 조회 2,660
11-01-07 조회 2,270
11-01-07 조회 2,415
11-01-07 조회 4,582
11-01-07 조회 2,613
11-01-06 조회 2,343
11-01-06 조회 2,426
11-01-06 조회 2,148
11-01-06 조회 2,252
11-01-06 조회 2,668
11-01-06 조회 2,540
11-01-06 조회 2,282
11-01-06 조회 2,571
11-01-06 조회 2,043
11-01-06 조회 2,297
11-01-06 조회 2,421
11-01-05 조회 2,292
11-01-05 조회 2,200
11-01-05 조회 2,199
11-01-05 조회 2,375
11-01-04 조회 2,447
11-01-02 조회 2,570
11-01-02 조회 2,445
11-01-01 조회 1,857
10-12-30 조회 2,057
10-12-30 조회 2,417
10-12-30 조회 2,504
10-12-30 조회 1,875
10-12-29 조회 3,423
10-12-29 조회 2,767
10-12-29 조회 2,281
10-12-29 조회 2,312
10-12-29 조회 2,552
10-12-29 조회 3,365
10-12-29 조회 2,620
10-12-29 조회 2,401
10-12-28 조회 2,413
10-12-28 조회 2,399
10-12-28 조회 2,531
10-12-28 조회 2,114
10-12-28 조회 2,724
10-12-28 조회 2,267
10-12-28 조회 2,067
10-12-28 조회 4,098
10-12-27 조회 1,793
10-12-27 조회 2,312
10-12-27 조회 2,292
10-12-26 조회 2,352
10-12-26 조회 2,080
10-12-24 조회 2,442
10-12-24 조회 2,487
10-12-24 조회 2,116
10-12-24 조회 2,624
10-12-24 조회 2,209
10-12-24 조회 2,334
10-12-23 조회 2,537
10-12-23 조회 2,214
10-12-23 조회 2,026
10-12-23 조회 2,242
10-12-23 조회 2,563
10-12-22 조회 2,195
10-12-22 조회 2,169
10-12-22 조회 2,539
10-12-22 조회 2,378
10-12-22 조회 2,175
10-12-21 조회 2,304
10-12-21 조회 2,397
10-12-20 조회 2,153
10-12-20 조회 2,136
10-12-20 조회 1,839
10-12-20 조회 2,119
10-12-20 조회 2,368
10-12-20 조회 2,189
10-12-20 조회 2,194
10-12-19 조회 2,352
10-12-19 조회 2,928
10-12-18 조회 1,763
10-12-18 조회 2,211
10-12-18 조회 2,252
10-12-18 조회 2,152
10-12-18 조회 2,025
10-12-17 조회 2,177
10-12-17 조회 1,928
10-12-17 조회 3,244
10-12-17 조회 1,990
10-12-17 조회 2,912
10-12-17 조회 1,986
10-12-17 조회 2,034
10-12-16 조회 2,170
10-12-16 조회 2,087
10-12-16 조회 2,788
10-12-16 조회 2,227
10-12-16 조회 2,154
10-12-15 조회 2,338
10-12-15 조회 2,123
10-12-15 조회 1,985
10-12-15 조회 2,160