Java tutorial
//package com.java2s; import android.util.Log; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static Date fromStringToDate(String string) { SimpleDateFormat ft = new SimpleDateFormat("dd.MM.yyyy"); Date date = null; try { date = ft.parse(string); } catch (ParseException e) { Log.e("PARSEEXC", "DATEPARSINGFAILED"); } return date; } }