+1-888-365-2779
Try Now
More in this section

Forums / General Discussions / event start date to 12 hour format on save

event start date to 12 hour format on save

6 posts, 0 answered
  1. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    06 May 2011
    Link to this post
    Currently the events are saving the time in a 24 hour formatting and its not showing in my custom widget correctly, even though I have used 99.9% of the timedate format functions out there in .NET, is there a way I can force the start and end date/time to be the 12h format on the save process instead of the 24 hr
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    25 Nov 2016
    06 May 2011
    Link to this post
    Hello NuToSitefinity,

    We use RadDateTimePicker in the GenricConetent based modules like Events when you create or edit an item. Please check this article which explains how to format the control value


    Best wishes,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    06 May 2011
    Link to this post
    ok, what's messing me up is how its being stored in the table its using the 24h format, and even though I have logic to convert it, its just not working. I'll take a look at what you provided. Thanks

    however, the actual issue is how its being saved into the database, its not being saved at 2:00 PM its being saved as 14:00:00
  4. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    11 May 2011
    Link to this post
    Hello NuToSitefinity,

    We are saving dates in UTC format. In the front end you will have to apply a date format in order to output them as you wish.

    Kind regards,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. NuToSitefinity
    NuToSitefinity avatar
    140 posts
    Registered:
    01 Sep 2010
    11 May 2011
    Link to this post
    I tried that, I tried changing the format on the eventsnewitem module page and its still going in as 24h, what and where else would I have to try this change?
  6. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    Registered:
    01 Feb 2016
    13 May 2011
    Link to this post
    Hello NuToSitefinity,

    It should be saved in 24 h. Then you should change the control templates for the public presentation of Event Items to format the output string.

    All the best,
    Radoslav Georgiev
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
6 posts, 0 answered