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