アプリ作って海外移住

コピペプログラマーのメモ

2014-02-03から1日間の記事一覧

日付

/////////////yyyy/mm/ddの文字列からcalendarクラス作成 ①DateFormatでyyyy/mm/ddを設定 ②Date に parseする。 ③カレンダーにセットcal.setTime(date); try{ //日付情報の初期設定 DateFormat df = new SimpleDateFormat("yyyy/MM/dd"); Date date = df.par…