라

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,188건
+
제목 글쓴이 날짜 조회
16-07-13 조회 2,175
16-07-12 조회 2,362
16-07-12 조회 2,392
16-07-11 조회 2,196
16-06-05 조회 2,927
16-06-03 조회 3,057
16-05-26 조회 2,983
15-09-22 조회 4,996
15-06-10 조회 4,841
14-10-25 조회 6,377
14-10-22 조회 8,997
14-09-21 조회 5,798
14-09-16 조회 5,085
14-08-22 조회 1.1만
14-08-13 조회 5,934
14-08-12 조회 5,449
14-08-12 조회 6,309
14-08-11 조회 6,947
14-06-12 조회 6,226
14-06-11 조회 5,120
14-05-09 조회 5,450
14-05-09 조회 6,410
14-05-09 조회 6,431
14-05-08 조회 5,777
14-04-17 조회 4,779
14-04-16 조회 4,599
14-04-15 조회 4,598
14-04-15 조회 4,544
14-04-15 조회 4,317
14-04-14 조회 4,307
14-04-14 조회 4,276
14-04-14 조회 4,646
14-04-14 조회 4,788
14-04-14 조회 4,778
14-04-13 조회 4,678
14-04-12 조회 4,252
14-04-12 조회 4,391
14-04-12 조회 4,495
14-04-11 조회 5,018
14-04-10 조회 4,760
14-04-10 조회 4,794
14-04-09 조회 4,948
14-04-09 조회 5,321
14-04-08 조회 7,006
13-10-30 조회 7,667
13-07-11 조회 5,150
13-03-28 조회 1.1만
13-02-27 조회 6,798
13-02-14 조회 5,639
13-01-10 조회 4,529
12-12-31 조회 5,112
12-12-20 조회 6,128
12-12-12 조회 5,289
12-12-07 조회 4,526
12-11-28 조회 4,874
12-11-22 조회 5,315
12-11-12 조회 5,672
12-09-22 조회 4,526
12-09-18 조회 4,715