c# - Combine datepicker and timepicker to make DateTime object in windows 8.1 app -


i want insert datetime object values in sqlite tabel

"create table customer (id integer not null primary key, name varchar(50), designation varchar(50), age integer, datemodified datetime, datecreated datetime)" 

for have function return formatted string datetime values

private string datetimesqlite(datetime datetime) {       string datetimeformat = "{0}-{1}-{2} {3}:{4}:{5}.{6}";       return string.format(datetimeformat, datetime.year,        datetime.month, datetime.day, datetime.hour, datetime.minute, datetime.second,datetime.millisecond); } 

i have 1 datepicker , timepicker in app . have combine these value pass funcion.how combine both controls values ??


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -