android - Date and Time formatting from sqlite database -


i have formatted timepicker , datepicker data following formats hh:mm am/pm , dd/mm/yyyy, , stored both variables sqlite database.

now, in activity need retrieve these values database, , pass pendingintent alarm through alarmmanager.

my problem getting these values in activity database, can't figure out how compare these values current calendar time, , pass pendingintent cal.gettimeinmillis().

i tried using simpledateformat, catches parseexception: unparseable date

can me out problem? in advance

i have tried simpledateformat this

simpledateformat sdf = new simpledateformat(" mm/dd/yyyy h:mm a", locale.us);         try {             cal.settime(sdf.parse(dnt));         } catch(parseexception e){             log.d(logcat, e.tostring());         } 


Comments

Popular posts from this blog

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - UML - How would you draw a try catch in a sequence diagram? -

c++ - No viable overloaded operator for references a map -