|
Date currentTime = Calendar.getInstance().getTime(); SimpleDateFormat dateformat = new SimpleDateFormat("dd.MM.yyyy"); String datetime = dateformat.format(currentTime); String date = DateFormat.getDateInstance().format( new Date() );
d: day 1,2,11 dd: day 01,02,11 M: Month 1,2,3,11 MM: Month 01,02,03,11 MMM: Month Jan, Feb MMMM: Month Januar ... yy: Year 18, 22 yyyy: Year 2018, 2022
|
|