@@ -0,0 +1,802 @@
+package dev.paytrack.paytrack.utils;%0A%0Aimport android.util.Log;%0A%0Aimport java.text.ParseException;%0Aimport java.text.SimpleDateFormat;%0Aimport java.util.Date;%0A%0A/**%0A * Created by albert on 18/03/17.%0A * @author albert%0A */%0Apublic class DateUtils %7B%0A%0A    /**%0A     * Parse an string to Date format%0A     * @param dateInString Date in 'YYYY-MM-DD' String format%0A     * @return The parsed date%0A     */%0A    public static Date parseStringToDate(String dateInString) %7B%0A        Date parsedDate = null;%0A%0A        SimpleDateFormat simpleDateFormat = new SimpleDateFormat(%22YYYY-MM-DD%22);%0A        try %7B%0A            parsedDate = simpleDateFormat.parse(dateInString);%0A        %7D catch (ParseException e) %7B%0A            Log.e(%22ParseException%22, %22Error while parsing string to Date%22);%0A        %7D%0A%0A        return parsedDate;%0A    %7D%0A%0A%7D%0A

add dateUtils class