Skip to content

Commit 1ba3e25

Browse files
authored
feat(ui5-datepicker): adds public getter dateValue (#726)
FIXES: #85
1 parent 851cf0d commit 1ba3e25

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

packages/main/src/DatePicker.js

+11
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,17 @@ class DatePicker extends UI5Element {
502502
return { isInput };
503503
}
504504

505+
/**
506+
* Currently selected date represented as JavaScript Date instance
507+
*
508+
* @readonly
509+
* @type { Date }
510+
* @public
511+
*/
512+
get dateValue() {
513+
return this.getFormat().parse(this.value);
514+
}
515+
505516
get classes() {
506517
return {
507518
icon: {

0 commit comments

Comments
 (0)