How to compare two Date and Time and get Day,Month,hour,min in Android? -


I have this type of string in format 01-18-2013 06:43:35 Now, I want to compare it Get date and day, month, hour, minimum, with current date and time. I searched it, but no solution was found ... please share some solutions .. Thanks ..

It can be helpful,

You can parse date by using the date format

  DF = DateFormat.getDateInstance (); MyDate = df.parse (myString);    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -