I have problem with input Date validation on Meteor, AutoForm and Simple-schema .
I want to add 2 date in user collection in meteor js and give formate like show in image.but value is null
I want to give date format in date type like 08.01.2016
Format work but when set date value return null
Set date time picker like this var from_dateid='input[name="profile.uservalid.from"]'; var to_dateid='input[name="profile.uservalid.to"]'; $(from_dateid).datepicker({ dateFormat: 'dd.mm.yy', }); $(to_dateid).datepicker({ dateFormat: 'dd.mm.yy', });
Well if that’s the case I’m going to guess that the date picker library you’ve picked is using a regex to extract the date parts of the set format. Using “.” is likely throwing that regex off. Maybe try escaping the “.”, consider moving away from using “.”, or look for another library that handles this differently.
Okay - let’s start to rule things out; have you added some logging in your UpdateMeteorUser method, dumping the contents of the incoming doc object? When you do, do you see the incoming selected date properly? If so we can rule out the date picker and go from there.