티스토리 뷰
프로그래밍을 하다보면 오늘 날짜로 디렉토리 만들어야 할 일이 많다.
DateFormat dfFormat = new SimpleDateFormat("yyyyMMdd");
Date nowDate = new Date();
String toDate = format.dfFormat(nowDate);
String filePath = toDate+"/";
String fullPath=rootPath+filePath;
File file = new File(fullPath);
if(!file.isDirectory){
file.mkdirs();
}
DateFormat dfFormat = new SimpleDateFormat("yyyyMMdd");
Date nowDate = new Date();
String toDate = format.dfFormat(nowDate);
String filePath = toDate+"/";
String fullPath=rootPath+filePath;
File file = new File(fullPath);
if(!file.isDirectory){
file.mkdirs();
}
'자바(Java)' 카테고리의 다른 글
| 스프링 환경에서 자바 파일 다운로드 방법 (0) | 2017.12.08 |
|---|---|
| 자바 정수 랜덤 (java integer random) (0) | 2017.12.08 |
| [스프링] 자바 RSA 로그인 적용 (0) | 2017.11.15 |
| 스프링 세션 사용 (0) | 2017.11.10 |
| [Java] 자바 버전 확인 (0) | 2017.10.19 |
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- XE3
- 인포믹스
- xe addon
- XE
- 이클립스
- 스크래핑
- xe애드온
- KG
- MySQL
- 파싱
- EC
- 자바 smtp
- C언어
- ocajp
- 프로씨
- 문자열
- php
- proc
- webix
- 자바
- esql
- C
- 플러터
- JDBC
- ocjap
- Python
- 포인터
- 라이믹스
- 파이썬
- 오라클
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 | 29 |
| 30 |
글 보관함
