'Etc...' 카테고리의 다른 글
마이클잭슨 We are the world (0) | 2009.07.09 |
---|---|
MS 오피스의 최적화를 위한 툴 베스트 15 (0) | 2009.06.02 |
대단한 자전거 묘기 (0) | 2009.05.18 |
프로그래밍 격언 모음. (4) | 2009.04.02 |
구글 크롬 아이콘은 이렇게 만들어졌다고... (2) | 2009.03.26 |
마이클잭슨 We are the world (0) | 2009.07.09 |
---|---|
MS 오피스의 최적화를 위한 툴 베스트 15 (0) | 2009.06.02 |
대단한 자전거 묘기 (0) | 2009.05.18 |
프로그래밍 격언 모음. (4) | 2009.04.02 |
구글 크롬 아이콘은 이렇게 만들어졌다고... (2) | 2009.03.26 |
MS 오피스의 최적화를 위한 툴 베스트 15 (0) | 2009.06.02 |
---|---|
DSLR 폐인 (0) | 2009.05.19 |
프로그래밍 격언 모음. (4) | 2009.04.02 |
구글 크롬 아이콘은 이렇게 만들어졌다고... (2) | 2009.03.26 |
내가 주로 가는 쇼핑몰 (0) | 2009.02.26 |
// 오늘 날짜를 가져오는 방법: (3월 8일 목요일) DateTime today = DateTime.Today;
// 1일 날짜를 가져오는 방법: (3월 1일 목요일) DateTime first_day = today.AddDays(1 - today.Day);
// 이번달의 1일날. ( 1월 1일) DateTime first_day = today.AddDays(1 - today.DayOfYear);
// 첫번째 주의 일요일을 가져오는 방법: (2월 25일 일요일) DateTime first_sunday = first_day.AddDays(0 - (int)(first_day.DayOfWeek));
// 첫번째 주의 일수를 가져오는 방법: (3일) int first_week_day_count = 7 - (int)(first_day.DayOfWeek);
// 말일 날짜를 가져오는 방법: (3월 31일 토요일) DateTime last_day = today.AddMonths(1).AddDays(0 - today.Day);
// 마지막 주의 일요일을 가져오는 방법: (3월 25일 일요일) DateTime last_sunday = last_day.AddDays(0 - (int)(last_day.DayOfWeek));
// 마지막 주의 일수를 가져오는 방법: (7일) int last_week_day_count = last_day.DayOfYear - last_sunday.DayOfYear + 1;
// 이번 달의 주수를 가져오는 방법: (5주) int this_month_week_count = ((last_sunday.DayOfYear - first_sunday.DayOfYear) / 7) + 1;
from : http://www.devpia.com/MAEUL/Contents/Detail.aspx?BoardID=17&MAEULNo=8&no=72997&ref=72997 String to DateTime // String to DateTime
String MyString;
MyString = "1999-09-01 21:34 PM";
DateTime MyDateTime;
MyDateTime = new DateTime();
MyDateTime = DateTime.ParseExact(MyString, "yyyy-MM-dd HH:mm tt",
null);
DateTime to String //DateTime to String
MyDateTime = new DateTime(1999, 09, 01, 21, 34, 00);
String MyString;
MyString = MyDateTime.ToString("yyyy-MM-dd HH:mm tt");
|
VB로 Excel(엑셀) 핸들링 - 시트 추가, 삭제, 이름 변경 (0) | 2009.08.20 |
---|---|
Windows Vista 에서 Infragistics 설치하기 (0) | 2009.07.10 |
Visual Basic 6.0 마우스 스크롤 추가기능 (0) | 2009.06.08 |
최대 소켓연결 숫자 늘리기 [WIN2000] (0) | 2009.03.12 |