Set notification at specific date using local notification


How to set reminder using local notification at specific date given by user? I didnt found any correct way to do this.

Thanks in advance.:grin:

Please check this plugin from ngcordova

thanks rajeshwarpatlolla for your reply. i already use localnotification.

html code

<form data-ng-submit="roadTaxNotification()" >
	 <input type="date" data-ng-model="date" placeholder="yyyy-MM-dd" required/>
	 <button type="submit" class="button button-full button-positive" value="date">Set Date</button>

$scope.roadTaxNotification = function () {

	 var getDate = new Date($;
	 var oneDay = 24*60*60*1000;
	 var today = new Date();
	 var nowA = new Date().getTime();
	 var diffDays = Math.round(Math.abs((getDate.getTime() - today.getTime())/(oneDay)));
	 var remind = diffDays*oneDay;
	 var remindAt = new Date(nowA + remind);
        id: 5,
        title: 'Warning',
        text: 'Roadtax expired',
		at: remindAt
      }).then(function (result) {
        console.log('Notification 5 triggered');



can anyone help me to trace where is the problem?

hello i have the same problem can you find any solution for this, can you help me???