Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

New Contributor
Posts: 5
Registered: ‎08-03-2011
My Device: None
My Carrier: None

'Date.getTime" [undefined]

I'm using 'Date.getTime" inside a playbook Application and I'm getting this error when ever this particular code is invoked.


I have seen in Playbook API under CalendarArguments But not working .. Getting 'Date.getTime" [undefined] error message..

All Replies
Posts: 163
Registered: ‎05-06-2011
My Device: Playbook
My Carrier: Not Specified

Re: 'Date.getTime" [undefined]

CalendarArguments in WebWorks is not supported for PlayBook. Please see the table showing the feature ID and OS in the mentioned link. Else do a filter from the top left select drop down.


Posts: 817
Registered: ‎11-19-2009
My Device: Z10, Q10, 9900, 9790, PlayBook,
My Carrier: T-Mobile UK, Three, O2, Orange, Sunrise, Swisscom

Re: 'Date.getTime" [undefined]

Try this:

var d = new Date();

var time = d.getTime();


You can use arguments when instantiating the date object, but be careful, the PlayBook has issues with some date formats.

Olivier - interfaSys ltd
Developing for BlackBerry 10 devices using the Sencha Touch framework.