Open jomarocas opened 8 years ago
helo bro,if u run in android successfully pls help me with my issues.i m struggled with one week.pls help me.i need to display calendar in my app.but it not showed.pls help me
What does moment.format()
give you, a String or a Date?
@EddyVerbruggen i send this value first value startdatecustomize = 2016-06-08 gethourbegincustom = 14:27 datebeginevent = 2016-06-08 14:27 startDatecustom = 2016-06-08T19:27:00.000Z in android the calendar create is success with this date
Just for science, can you pass in a new Date()
instead?
var datebeginevent = moment().format(startdatecustomize + ' ' + gethourbegincustom);//result 2016-06-08 14:27
var startDatecustom = new Date(datebeginevent); result 2016-06-08T19:27:00.000Z
sorry for no explain good, this is the values of each variables
This Plugin requires a normal js Date Object
. If you use momentjs, then convert your momentjs Date Object
back to a normal js Date Object
with this function moment().toDate();
@mnewmedia but the result is a normal js date object the result is this "result 2016-06-08T19:27:00.000Z" is a js date object, that i send to calendar, always send startdatecustom. in ios 9 crash, in android working very good
but the .format
returns ever a string, maybe the string looks the same like when you log
the normal Date Object, but it's not the same. What do you have against toDate()
?
https://github.com/EddyVerbruggen/Calendar-PhoneGap-Plugin/issues/237 this issue is related that i have, but is closed, and really dont solutions in the before issue.
this code working good in android 5 or 6 all version, crash in ios 9 with real device and ios emulator with iphone 6 and ios 9.3, thanks if any help me
my code
i use moment for detect local time for each user create event i use createEvent and createEventInteractively, but without success
this is the log http://pastebin.com/iv97fmdt if any have the solution please post here