티스토리 뷰
프로그래밍을 하다보면 오늘 날짜로 디렉토리 만들어야 할 일이 많다.
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
- 포인터
- php
- 파싱
- xe addon
- 자바
- KG
- C언어
- EC
- esql
- 문자열
- 스크래핑
- MySQL
- ocajp
- 플러터
- 라이믹스
- 자바 smtp
- 파이썬
- webix
- C
- 프로씨
- 인포믹스
- 이클립스
- ocjap
- XE3
- 오라클
- Python
- JDBC
- xe애드온
- XE
- proc
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
글 보관함