How to add Contact with birth date to Android using Cordova / Phonegap Contacts Plugin -


we facing issue while trying add birthday contact while using cordova android while adding new contact phonebook

following part of code

contact = navigator.contacts.create({ "displayname": displayname });  // store contact name var contactname = new contactname(); contactname.familyname = lastname; contactname.givenname = firstname contact.name = contactname;  contact.birthday = new date("16 may 1984");  // save contact contact.save(); 

with above code, when data viewed in android phone, birthday save 29-12-6731 instead of expected 16-may-1984

we have tried possible combinations of date entry viz: 16-may-1984 ; 16/may/1984 ; 16/5/1984 ; new date(1984,05,16)

but in vain results same.

also need know how save anniversary date

when using plugin ios, date saved 15-may-1984 (1 day less expected).

looks issue still unresolved: https://issues.apache.org/jira/browse/cb-1602

the bug filed under https://issues.apache.org/jira/browse/cb-8115 not add new.

as regards date on ios, recommend set hours, minutes, seconds, , milliseconds 0 in data object.


Comments

Popular posts from this blog

ruby on rails - RuntimeError: Circular dependency detected while autoloading constant - ActiveAdmin.register Role -

c++ - OpenMP unpredictable overhead -

javascript - Wordpress slider, not displayed 100% width -