Split the date AnyPicker.js

Clash Royale CLAN TAG#URR8PPP
Split the date AnyPicker.js
When I click .btn it will get value 08 2018. How can I split the value into input.day and input.month when I click the .btn?
.btn
08 2018
input.day
input.month
.btn
$(".btn").AnyPicker(
mode: "datetime",
dateTimeFormat: "MM YYYY",
maxValue: "12 2100",
minValue: "01 2018",
);
<input class="btn">
<input type="text" id="" placeholder="DD" class="day"> //date here
<input type="text" id="" placeholder="YYYY" class="year"> //year here
dateTimeFormat: "MM YYYY"
hi I just change my code, it only need to show month and year
– Tani Huang
Aug 10 at 10:07
By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.
You have formatted the plugin to use month and year
dateTimeFormat: "MM YYYY"therefore there is no day– Darren Sweeney
Aug 10 at 9:54