hi ,
i am stuck .i am using datepicker directive in .
once i seleted the new date it is working fine but when i want to save the selected date it take current date .
the html for this is like .
{{card.view_attributes.venue_date.value = info.dateObj.getDate() +' '+ months[info.dateObj.getMonth()] +' '+ info.dateObj.getFullYear()}}
ng-change ="setDate();" date-type="string" >
{{card.view_attributes.venue_date.value}}
ng-click="Opened=true;$event.stopPropagation(); $event.preventDefault(); ">
scope.info = {
dateObj : (new Date())
}
and i want to store the selected date into json value
please reply it .
3 Replies
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
aman sharmaPosted Feb 26, 2016, 6:52 AM
aman sharmaPosted Feb 26, 2016, 6:52 AM
Amit Kumar SinghPosted Feb 16, 2016, 9:28 PM