Home > Database > Mysql Tutorial > IT忍者神龟之date日期回顾

IT忍者神龟之date日期回顾

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:03:40
Original
1184 people have browsed it

Calendar cal = Calendar.getInstance(); cal.get(Calendar.DAY_OF_MONTH); cal.get(Calendar.MONTH); cal.get(Calendar.YEAR); SimpleDateFormat simpleDateFormat = new SimpleDateFormat(yyyyMMdd); String date=simpleDateFormat.format(new Date()); Str

Calendar cal = Calendar.getInstance();

cal.get(Calendar.DAY_OF_MONTH);
cal.get(Calendar.MONTH);

cal.get(Calendar.YEAR);

SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMdd");
String date=simpleDateFormat.format(new Date());
String y=date.substring(0,4);
String m=date.substring(4,6);
String d=date.substring(6,8);

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template