Asp.Net日历日期时间和小时

时间:2015-09-24 22:25:48

标签: asp.net calendar fullcalendar

我需要能够从ASP.Net日历控件中选择日期和时间(而不仅仅是日期)。我该如何做到这一点?

到目前为止,这是我的代码:

protected void btnEkle_Click(object sender, EventArgs e) { 
    DateTime selected = Tarih.SelectedDate; 
    DateTime dt = new DateTime(selected.Year, selected.Month, selected.Day, DateTime.Now.Hour, DateTime.Now.Minute, DateTime.Now.Second);        
    using (KargoTakipEntities kargo = new KargoTakipEntities()) {                 
            KargoTakipSorgu kargoekle = new KargoTakipSorgu { Tarih = dt, }
    }
}

0 个答案:

没有答案