Date format does not show AM/PM

3 posts, 0 answers
  1. Christopher
    Christopher avatar
    16 posts
    Member since:
    Apr 2013

    Posted 16 Aug 2017 Link to this post

    Hey guys,

    my grid doesn't work well with formatting date times. Our customers do have the option to choose between 12 and 24 hour format. But in my grid, the AM/PM isn't shown. 

    $column = new \Kendo\UI\GridColumn();
    $column->format('dd.MM.yyyy hh:mm:ss tt');

     

    Date and time are completely correct, but I am missing the 'tt' at the end. What am I doing wrong?

    Thanks and regards,

    Chris

  2. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    2466 posts

    Posted 18 Aug 2017 Link to this post

    Hello Christopher,

    Some cultures are without short time pattern, so could you please elaborate what culture you are setting in your application? Meanwhile you could also test to set a specific culture that has short time pattern:

    Best Regards,
    Konstantin Dikov
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
  3. Christopher
    Christopher avatar
    16 posts
    Member since:
    Apr 2013

    Posted 18 Aug 2017 Link to this post

    Hello Konstantin,

    didn't know that some cultures doesn't support short time pattern. My setting was 'de-DE', with 'en-US' it works fine. Thank you! :) 

    Chris

Back to Top