일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 오라클
- c#
- 태그를 입력해 주세요.
- CONVERT()
- SSRS
- 이클립스
- MS
- replace()
- IIS
- ASP
- DataGrid
- jQuery
- Winform
- Excel
- windows
- 마이크로소프트
- attr()
- 자바스크립트
- 리포팅서비스
- MSSQL
- oracle
- 윈폼
- microsoft
- 엑셀
- 윈도우
- javascript
- 프로시저
- aspnet
- 비주얼스튜디오
- 단축키
Archives
- Today
- Total
목록extension (1)
DJ메탈짱™의 Free Style
[C#] 확장메소드, Extension, Method, 생년월일, 만 나이 계산, ParseExact, DateTime
/// /// 현재시간을 기준으로 생년월일을 가지고 만 나이 계산 /// /// 생년월일 /// 현재시간 /// 나이 public static int GetAge(this string strDob, DateTime dtKST) { // 현재 서버시간(KST) DateTime dtNow = Convert.ToDateTime(dtKST); // 선택한 날짜 Convert수정 DateTime dtDOB = DateTime.ParseExact(strDob, "yyyyMMdd", null); int iAge = 0; int birth_year = dtDOB.Year; int birth_month = dtDOB.Month; int birth_day = dtDOB.Day; int now_year = dtNow.Yea..
일(job)/MS(Microsoft)
2015. 12. 21. 12:35