A Microsoft platform for building and publishing apps for Windows devices.
Try this binding:
<TextBlock Text="{x:Bind DuoDate.ToShortDateString()}" ...
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How can I remove the time with the date on a datePicker on sql server c #. Example ddMMYYY 00:00:00
A Microsoft platform for building and publishing apps for Windows devices.
Answer accepted by question author
Try this binding:
<TextBlock Text="{x:Bind DuoDate.ToShortDateString()}" ...
If you never need the time, then use a date column instead of datetime in SQL.
on a datePicker on sql server
There is not DatePicker or any other control on SQL Server side.
Use DateTime.Date Property to get the date without time potion.
Another way is via CASTing:
SELECT CAST(GETDATE() AS DATE);
Try to use Format function:
SELECT FORMAT(GETDATE(), 'ddMMyyyy');