Welcome!

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

Adobe AIR Development

Reply
Developer
Posts: 435
Registered: ‎09-20-2011
My Device: Z10 LE, Playbook, DevAlpha C, 9900, 9380
My Carrier: Vodafone

Date() not working properly for me

Date() not giving correct date. I will show you my code snippet and output.

 

var dateSmiley Very Happyate;
date= new Date();
trace("Date::"+date);

 

this gives me output --->  Wed Feb 8 01:30:59 GMT-0500 2012

 

 

 

Developer
Posts: 6,541
Registered: ‎10-27-2010
My Device: HTC One, PlayBook, LE Z10, DE Q10
My Carrier: Verizon

Re: Date() not working properly for me

Is the time zone set correctly on your device? Also try toLocalString().