android - need the way to put Date in Parse.com without Time and the opposite -


can't figured how put date or time parse.com. after simpledateformat date objects transferring full default missing data.

code samples:

dateformat dateformat = new simpledateformat("dd/mm/yyyy"); dateformat timeformat = new simpledateformat("hh:mm"); try {     date = dateformat.parse(mdate.gettext().tostring());     time = timeformat.parse(mtime.gettext().tostring()); } catch (java.text.parseexception e) {  ...  meeting.put(parseconstants.key_date, date); meeting.put(parseconstants.key_time, time); 

but on parse.com received 2 date objects full date parameters: date , time @ both of them.

any idea need do?

thanks lot.

what did.

i used calender class , filled each item(year, month, day, hour, minute) while using date , time pickers. , used calendar.gettime method transform date class parse.com understand.

calendar mdatetime = calendar.getinstance(); ... mdatetime.set(calendar.year, selectedyear); mdatetime.set(calendar.month, selectedmonth); mdatetime.set(calendar.day_of_month, selectedday); ... meeting.put(parseconstants.key_datetime, mdatetime.gettime()); 

so still have inputs date , time , working parse date class.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -