일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 맛집
- AWS
- devops
- jsp
- php
- Gradle
- ReactJS
- db
- javascript
- ubuntu
- Git
- MySQL
- Design Patterns
- Spring
- java
- Spring Boot
- IntelliJ
- springboot
- 요리
- linux
- jenkins
- docker
- redis
- elasticsearch
- laravel
- Oracle
- JPA
- tool
- it
- Web Server
Archives
- Today
- Total
아무거나
java.utill.Date 타입 yyyy-mm-dd 형태로 바꾸기 본문
반응형
java.util.Date date = new Date("Sat Dec 01 00:00:00 GMT 2012");
SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); // yyyy-MM-dd HH:mm:ss
String format = formatter.format(date);
System.out.println(format);
반응형
'Java > Java' 카테고리의 다른 글
날짜 비교 date compare (0) | 2019.06.20 |
---|---|
string to date / date to string 형변환 (0) | 2019.06.20 |
Date 표시 방법 (0) | 2019.06.19 |
[library] SSH Utils [private key, password] (2) | 2019.06.17 |
switch 문 사용할 때 주의점 (0) | 2019.06.17 |
Comments