lundi 30 novembre 2015

How to convert EditText field to a DateTime in Android?

I'm building an application in Android with Xamarin and I have a problem.. I want to convert an EditText field string to a DateTime. I'm using a SQLITE database. I have this code:

btnSave.Click += (object IntentSender, EventArgs e) => {

                ConcertDB cdb = new ConcertenDB();
                Concert dataInput = new Concerten();

                dataInput.Date= Convert.ToDateTime(dt);
                cdb.insertUpdateData(dataInput);
            }; 

Aucun commentaire:

Enregistrer un commentaire