Can DatePicker be extended to support keywords such as "TODAY"?

2 posts, 0 answers
  1. Darren
    Darren avatar
    11 posts
    Member since:
    Sep 2014

    Posted 02 Apr 2015 Link to this post


    I want the datepicker to support keywords such as "TODAY" or "YESTERDAY".

    What that means, is that either by typing it into the textbox or by using the footer with a "today" button, users can set the date to "Today".

    That means I want the string "today" to be saved in the database and not the date of "today", because when the user comes back few days later I want to parse the string and show the actual today date and not one of the past.

    In the grid filtering, I have already figured out how to get the string "today" from the database and convert into into today's date and place into the datetimepicker but I am having a hard time doing the saving of the special keyword.

    Any help is appreciated
  2. Georgi Krustev
    Georgi Krustev avatar
    3687 posts

    Posted 03 Apr 2015 Link to this post

    Hello Darren,

    The required functionality can be accomplished using 3rd part library, that can parse human readable dates. I would suggest you check this how-to demo that shows integration with such JS library.

    Georgi Krustev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top