출처 : http://jmnote.com/wiki/JQuery_UI_%EA%B8%B0%EA%B0%84_%EC%84%A0%ED%83%9D_(datepicker)







조회기간: ~



시작날짜를 선택하면 마지막날짜를 시작날짜 이후만 선택되도록 된다.

Jquery 참 편한것 같다..ㅎㅎ

출처 : http://wizcody.egloos.com/2471287
All the patterns:
0 MM/dd/yyyy 10/25/2007
1 dddd, dd MMMM yyyy Thursday, 25 October 2007
2 dddd, dd MMMM yyyy HH:mm Thursday, 25 October 2007 00:49
3 dddd, dd MMMM yyyy hh:mm tt Thursday, 25 October 2007 12:49 AM
4 dddd, dd MMMM yyyy H:mm Thursday, 25 October 2007 0:49
5 dddd, dd MMMM yyyy h:mm tt Thursday, 25 October 2007 12:49 AM
6 dddd, dd MMMM yyyy HH:mm:ss Thursday, 25 October 2007 00:49:38
7 MM/dd/yyyy HH:mm 10/25/2007 00:49
8 MM/dd/yyyy hh:mm tt 10/25/2007 12:49 AM
9 MM/dd/yyyy H:mm 10/25/2007 0:49
10 MM/dd/yyyy h:mm tt 10/25/2007 12:49 AM
11 MM/dd/yyyy HH:mm:ss 10/25/2007 00:49:38
12 MMMM dd October 25
13 MMMM dd October 25
14 yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK 2007-10-25T00:49:38.0395323-04:00
15 yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK 2007-10-25T00:49:38.0395323-04:00
16 ddd, dd MMM yyyy HH':'mm':'ss 'GMT' Thu, 25 Oct 2007 00:49:38 GMT
17 ddd, dd MMM yyyy HH':'mm':'ss 'GMT' Thu, 25 Oct 2007 00:49:38 GMT
18 yyyy'-'MM'-'dd'T'HH':'mm':'ss 2007-10-25T00:49:38
19 HH:mm 00:49
20 hh:mm tt 12:49 AM
21 H:mm 0:49
22 h:mm tt 12:49 AM
23 HH:mm:ss 00:49:38
24 yyyy'-'MM'-'dd HH':'mm':'ss'Z' 2007-10-25 00:49:38Z
25 dddd, dd MMMM yyyy HH:mm:ss Thursday, 25 October 2007 00:49:38
26 yyyy MMMM 2007 October
27 yyyy MMMM 2007 October

The patterns for DateTime.ToString ( 'd' ) :
0 MM/dd/yyyy 10/25/2007

The patterns for DateTime.ToString ( 'D' ) :
0 dddd, dd MMMM yyyy Thursday, 25 October 2007

The patterns for DateTime.ToString ( 'f' ) :
0 dddd, dd MMMM yyyy HH:mm Thursday, 25 October 2007 00:49
1 dddd, dd MMMM yyyy hh:mm tt Thursday, 25 October 2007 12:49 AM
2 dddd, dd MMMM yyyy H:mm Thursday, 25 October 2007 0:49
3 dddd, dd MMMM yyyy h:mm tt Thursday, 25 October 2007 12:49 AM

The patterns for DateTime.ToString ( 'F' ) :
0 dddd, dd MMMM yyyy HH:mm:ss Thursday, 25 October 2007 00:49:38

The patterns for DateTime.ToString ( 'g' ) :
0 MM/dd/yyyy HH:mm 10/25/2007 00:49
1 MM/dd/yyyy hh:mm tt 10/25/2007 12:49 AM
2 MM/dd/yyyy H:mm 10/25/2007 0:49
3 MM/dd/yyyy h:mm tt 10/25/2007 12:49 AM

The patterns for DateTime.ToString ( 'G' ) :
0 MM/dd/yyyy HH:mm:ss 10/25/2007 00:49:38

The patterns for DateTime.ToString ( 'm' ) :
0 MMMM dd October 25

The patterns for DateTime.ToString ( 'r' ) :
0 ddd, dd MMM yyyy HH':'mm':'ss 'GMT' Thu, 25 Oct 2007 00:49:38 GMT

The patterns for DateTime.ToString ( 's' ) :
0 yyyy'-'MM'-'dd'T'HH':'mm':'ss 2007-10-25T00:49:38

The patterns for DateTime.ToString ( 'u' ) :
0 yyyy'-'MM'-'dd HH':'mm':'ss'Z' 2007-10-25 00:49:38Z

The patterns for DateTime.ToString ( 'U' ) :
0 dddd, dd MMMM yyyy HH:mm:ss Thursday, 25 October 2007 00:49:38

The patterns for DateTime.ToString ( 'y' ) :
0 yyyy MMMM 2007 October


** catalina.out 날짜별로 쌓기
cronolog를 설치해야 한다.
홈페이지는 http://cronolog.org/  에서 받아서 설치한다.
]# wget http://cronolog.org/download/cronolog-1.6.2.tar.gz
]# tar xvzf cronolog-1.6.2.tar.gz
]# cd cronolog-1.6.2
]# ./configure --prefix=/usr/local/cronolog
]# make
]# make install
]# /usr/local/cronolog/sbin/cronolog

설치후 다음 톰켓의 catalina.sh 를 편집한다.(%TOMCAT% 은 톰켓 설치 경로)
vi %TOMCAT%/bin/catalina.sh
...
org.apache.catalina.startup.Bootstrap "$@" start \
>> "$CATALINA_BASE"/logs/catalina.out 2>&1 &
...

부분을 아래와 같이 변경한다.(tomcat5.5기준으로 266번째 라인쯤 있다.또한 else 부분도 같이 변경해줘야 한다.)
...
org.apache.catalina.startup.Bootstrap "$@" \
start |/usr/local/cronolog/sbin/cronolog %TOMCAT%/logs/%Y-%m-%d.catalina.out >> /dev/null 2>&1 &
...

톰켓을 재구동한다.
]# shutdown.sh
]# startup.sh