Android

【Android】今日の日付を取得する

public static String getNowDate(){ final DateFormat df = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); final Date date = new Date(System.currentTimeMillis()); return df.format(date); }