简体   繁体   中英

How to set XAML DatePicker and TimePicker from C# using date and time column from SQL Server? [closed]

I would like to know how to set the default value of the XAML Datepicker and Timepicker using C#.

For example, the datetime in SQL Server is "2019-11-28 08:00:00.000" and I convert it into string.

Then I need the Datepicker to show 28 November 2019; and Timepicker to show 8 00 am in XAML

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM