Don't show appointment if start/end touches 00:00

3 posts, 0 answers
  1. Ian
    Ian avatar
    68 posts
    Member since:
    Jul 2017

    Posted 24 Nov 2017 Link to this post

    If there's an appointment, for example, that's 1st Jan 00:00am- 2nd Jan 00:00am, then the calendar will show it on three days - 31st, 1st and 2nd.

    Is it possible to stop it from appearing on the days where it only starts or ends?

    So, an appointment would not appear on a day when it starts at 00:00pm and when it ends at 00:00am. If an appointment started and finished at 00:00am and 00:00pm, then it could default to appearing on the day it starts.

  2. Ian
    Ian avatar
    68 posts
    Member since:
    Jul 2017

    Posted 24 Nov 2017 Link to this post

    I achieved this by adding one minute to a start date if it starts at midnight and subtracting one minute from an end date if it touches midnight.
  3. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    665 posts

    Posted 29 Nov 2017 Link to this post

    Hello, Ian,

    Indeed, the approach you have taken would be my suggestion as well. You should be able to achieve it by working with the seconds as well if you want to be more precise.

    Regards,
    Stefan Nenchev
    Progress Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top