Quantcast
Channel: Extended WPF Toolkit™ Community Edition
Viewing all articles
Browse latest Browse all 4964

Commented Unassigned: Support TimeSpan format strings [21608]

$
0
0
Something like this should be doable, "hh:mm:ss.fff tt", yes?

When I set that, the formatting does not occur, and the drop down shows full date/time, in spite of the fact this is a TimePicker.
Comments: ** Comment from web user: BoucherS **

Hi,

A) TimeSpanUpDown

The TimeSpanUpDown supports the following format :
dd.hh:mm:ss.fff
(days.hours:minutes:seconds.milliseconds)

the "day" won't be displayed if you have less than 24 hours.

In v2.5, a property called FractionnalSecondsDigitsCount can be used to set between 0 and 3 digits for fractions of second.

The "tt" is used to display AM/PM, which is not a valid value in a TimeSpan. The goal of the TimeSpan is to display an elapsed time, not the current time.

B) TimePicker

If you are talking about the TimePicker, you are right, the setting "tt" doesn't do anything. You have to make sure the property TimePicker.CultureInfo is set to a valid culture, that supports AM/PM, like "en-US".


Viewing all articles
Browse latest Browse all 4964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>