locked
TimePicker not showing AM/PM

    Question

  • Hi,

    I am using Windows 8.1 new TimePicker component..

    I already have tested in an empty Windows Store App project and it works fine, but not in this Visual Studio solution that was retarget to Windows 8.1.

    Instead of showing AM or PM, it shows the options "." and "..".


    Have anyone had an issue like this?

    Friday, May 16, 2014 5:41 PM

Answers

  • If the user sets the system up with AM and PM designators then those should display. You wouldn't usually use an AM/PM date format in a locale that doesn't use AM and PM.

    --Rob

    Tuesday, May 20, 2014 6:16 PM
    Owner

All replies

  • What locale are you in?

    If you look at the CultureInfo.DateTimeFormat.AMDesignator Property and PMDesignator Property do they show "." and ".."?

    --Rob

    Friday, May 16, 2014 10:39 PM
    Owner
  • Hi Rob,

    I am in Brazil (CultureInfo.CurrentCulture = {pt-BR}). And these properties have no value at all, they are just empty strings.

    I suppose that even if the user requests to see the time in the AM/PM format, he or she will not be able to do so, due to the locale that is set.

    Thanks,

    Mauricio

    Tuesday, May 20, 2014 4:02 PM
  • If the user sets the system up with AM and PM designators then those should display. You wouldn't usually use an AM/PM date format in a locale that doesn't use AM and PM.

    --Rob

    Tuesday, May 20, 2014 6:16 PM
    Owner