how to autocomplete wwith current year if not typed

63 views
Skip to first unread message

Stéphane Mégy

unread,
Aug 21, 2019, 3:36:23 AM8/21/19
to bootstrap-datepicker
I'm using a format dd/mm/yyyy. I want to "autocomplete" with the current year if the user type only dd/mm. For example if the user type 30/05 and blur the field (with tab or click), the real date is 30/05/2019.

BTW I know the top "assumeNearbyYear" that transforms 30/12/19  in 30/12/2019 but it'es not exactly what I need
Reply all
Reply to author
Forward
0 new messages