Hope someone can help me! I have made a directive wrapping the Jasny Bootstrap Plugin more specifically the input-mask thing and everything goes well!
Now I have made a
When you get the value initially, adjust it to fit the input. I got it working in the ready
function, but you could do this after your DB call as well:
ready: function(){
var year = this.date.substr(0, 4);
var monDay = this.date.substr(5,5);
var result = monDay + "-" + year;
this.date = result.replace(/-/g,"/");
}
You may have to do something similar on the way back up to your database as well.