sqlite - Android - How can I split the date format to year, month and day from String to int? -


i ask if have date dd/mm/yyyy in string format, want split int year, int month , int day, how can that.

other that, string date (dd/mm/yyyy) stored in sqlite.

you split way also

string date="dd/mm/yyyy"; string[] items1 = date.split("/"); string date1=items1[0]; string month=items1[1]; string year=items1[2]; 

Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -