You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, is a problem with the filter "mFormat" and the createMoment function.
I solved with this.
Module.filter('mFormat',function(){returnfunction(m,format,tz){if(!(moment.isMoment(m))){if(m){returnm;}else{return'';}}returntz ? moment.tz(m,tz).format(format) : m.format(format);};});
createMoment: function(m){if(tz){returnmoment.tz(m,tz);}else{if(/\d\d\/\d\d\/\d\d\d\d/.test(m))// Test with my formatreturnmoment(m,'DD/MM/YYYY');elsereturnmoment.isMoment(m) ? moment.unix(m.unix()) : moment();}}
I cannot update the selected date of my datepicker directly in JS.
And I would like to have my input empty rather than having the default set to today.
The text was updated successfully, but these errors were encountered: