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
Post a Comment