Selecting the Time Format

By default, the C1DateTimePicker control's time picker displays the time in a long format that includes seconds, but it can also display time in a shorter format. In this topic, you will learn how to change the time format in XAML, from the Properties window, and in code.

In XAML

To change the Date format, place TimeFormat="T" to the <c1:C1DateTimePicker> tag to resemble the following markup:

<c1:C1DateTimePicker TimeFormat="T">

From the Properties Window

Locate the TimeFormat property in your application's Properties window.  Change the character in the TimeFormat property setting textbox to T. The time is now set to display in a long format, as in the following image:

 

This Topic Illustrates

Changing the TimeFormat property.

 


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.