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

Datepicker value as date?

3 Answers 15 Views
This is a migrated thread and some comments may be shown as answers.
Maximiliano
Top achievements
Rank 1
Veteran
Maximiliano asked on 18 May 2019, 08:31 AM

Hi,

 

That's it, i need to get the selected date as a date object, is there any way besides manually parsing the string?

 

 

Thanks...

3 Answers, 1 is accepted

Sort by
0
Accepted
Viktor Tachev
Telerik team
answered on 20 May 2019, 10:55 AM
Hi Maximiliano,

In order to get the selected date as Date object you can use the value method of the DatePicker widget. I have prepared a small example that illustrates how the selected date can be retrieved in the change event handler. 



Regards,
Viktor Tachev
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
0
Maximiliano
Top achievements
Rank 1
Veteran
answered on 20 May 2019, 02:54 PM
Thanks for your time Viktor...
0
Wilma
Top achievements
Rank 1
answered on 13 Jun 2019, 11:11 AM
[quote]Viktor Tachev said:Hi Maximiliano,

In order to get the selected date as Date object you can use the value method of the DatePicker widget. I have prepared a small example that illustrates how the selected date can be retrieved in the change event handler. 



Regards,
Viktor Tachev
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

[/quote]

 

Many thanks for that complete information!

Asked by
Maximiliano
Top achievements
Rank 1
Veteran
Answers by
Viktor Tachev
Telerik team
Maximiliano
Top achievements
Rank 1
Veteran
Wilma
Top achievements
Rank 1
Share this question
or