Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Countdown timer (picker) value to string

What's going on here? I need datetime to look like the first info as a string so I can parse the minutes and seconds.

//By the way, the picker is setup as a countdown timer.
//Picker is changed to a value of 13min
picker.addEventListener('change',function(e)
{
    Ti.API.info(e.value);
    var datetime = e.value+"";
    Ti.API.info(datetime);
});

outputs:

[INFO] 0002-12-02 00:13:00 -004308
[INFO] Sat Nov 30 0002 00:56:08 GMT+0000 (GMT)
— asked June 28th 2010 by Ryan Gartin
  • countdown
  • iphone
  • mobile
  • picker
  • timer
0 Comments

0 Answers

The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.