From f8fd65efb495367d6b317a9fab3e6fb446342714 Mon Sep 17 00:00:00 2001 From: Flaburgan Date: Thu, 12 May 2016 17:28:26 +0200 Subject: [PATCH] Pad day and month num in the popup selector --- js/jquery.dateselect.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/jquery.dateselect.js b/js/jquery.dateselect.js index 3d1b45e..9c05570 100644 --- a/js/jquery.dateselect.js +++ b/js/jquery.dateselect.js @@ -83,8 +83,8 @@ curMonth = date.getMonth(); curYear = date.getFullYear(); // - dayNum.text( curDay ); - monthNum.text( curMonth + 1 ); + dayNum.text( this.pad(curDay, 2) ); + monthNum.text( this.pad(curMonth + 1, 2) ); yearNum.text( curYear ); dayText.text( opts.strings.days[curWeekday] ); monthText.text( opts.strings.months[curMonth] );