3
Answers

[WPF] TextBox and String Format Hour:Minutes

Photo of Roberto Salemi

Roberto Salemi

10y
4.4k
1
Hi,

I would set the string format in a TextBox that it is binding with a Date.

For example, if I have 01/04/2015 16:11,

1) I would show only 16:11

2) When the user modifies the hour must respect the format hh:mm



Thanks.

Answers (3)