33471

WP7 TimePicker choose time in 24h format

Is there a way to get WP7's TimePicker to allow the user to select the time in 24 hour format? If I set TimePicker.ValueStringFormat to "{0:HH:mm:ss}" it displays in 24h format, but when I click it the input time is still 12h format (with AM/PM). Can TimePicker be configured to scroll 0-23 instead of 1-12 with AM/PM?

Answer1:

Here you can find a link that can help: however I notice that now the timePicker handle the 12-24 hours conversion authomatically depending on the phone date-time setting!

Answer2:

Some possibilities:

    <li>

    use custom time picker control, eg. this one

    </li> <li>

    create you own page implementing IDateTimePickerPage interface and point to it in PickerPageUri property of TimePicker control (more info)

    </li> </ul>

    I know it should be done easier on standard TimePicker control, but it isn't, so you have to deal with it on your own.

Recommend

  • How to Hide or Disable Minutes widget in Android TimePickerDialog?
  • Exception of type 'System.InvalidOperationException' occurred in mscorlib.ni.dll but was n
  • change date format in datetimepicker plugin?
  • Jquery FullCalander not loading in popup
  • Round brackets not showing up correctly in RightToLeft flow direction in WPF
  • RavenDB OrderByDescending and Take - Incorrect Results
  • How to retrieve Business Component rows in SIebel Open UI PM?
  • wrong item changes in recyclerview
  • How to expand parent div to account for child's overflow?
  • Base Internationalization and “Could not find a storyboard named […]”
  • UITableView takes much longer to load when numberOfRows returns a large number
  • Cordova Apache wrong module path
  • How do you keep a running instance for Google App Engine
  • Change device language on Android 6.0 (Android M)
  • ASPNetCore MVC Routing Let Server Handle Specific Route
  • Microsoft Excel Pivot miscalculation in Sum for positive and negative numbers
  • C# List of Panels
  • CSS - Cannot get one spanned style to override another inherited style and align left
  • Prevent Tomcat from caching request during starup
  • Suppressing passwd when calling sqlplus from shell script
  • x64 applications using gdi+: what are the consequences on performance?
  • Django rest serializer Breaks when data exists
  • How to rebase a series of branches?
  • Java Scanner input dilemma. Automatically inputs without allowing user to type
  • Why is the size of this struct 32?
  • Why ng-show works with ng-repeat but ng-if doesn't? [duplicate]
  • Azure Cloud Service Web Role web pages do not load
  • Align navbar back button on right side
  • Javascript + PHP Encryption with pidCrypt
  • what is the difference between the asp.net mvc application and asp.net web application
  • jquery mobile loadPage not working
  • Apache 2.4 - remove | delete | uninstall
  • Data Validation Drop Down Box Arrow Disappearing
  • Matrix multiplication with MKL
  • How do you join a server to an Active Directory (domain)?
  • How can I remove ASP.NET Designer.cs files?
  • python draw pie shapes with colour filled
  • Is there any way to bind data to data.frame by some index?
  • Binding checkboxes to object values in AngularJs
  • How can i traverse a binary tree from right to left in java?