This is a migrated thread and some comments may be shown as answers.

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

1 Answer 102 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
Darren
Top achievements
Rank 1
Darren asked on 02 Apr 2015, 09:47 AM
Hi,

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

1 Answer, 1 is accepted

Sort by
0
Georgi Krustev
Telerik team
answered on 03 Apr 2015, 12:26 PM
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.

Regards,
Georgi Krustev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
DatePicker
Asked by
Darren
Top achievements
Rank 1
Answers by
Georgi Krustev
Telerik team
Share this question
or