Results 1 to 2 of 2

Thread: EXJTS 4 numberfield format

  1. #1
    Sencha Premium Member
    Join Date
    May 2012
    Vote Rating

    Default EXJTS 4 numberfield format

    Hey guys,

    Just a quick question. I have 2 numberfields resembling a click. So there's hours : minutes.
    The hours numberfield goes up to 23, and minutes goes up to 59. What I want to do is be able to display the minutes/hours as 01,02,03 and not 1,2,3. So the numberfields will show 04 : 09 instead of 4 : 9.

    How is this possible?

    Thanks in advance

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Gainesville, FL
    Vote Rating


    You won't be able to use the number field then. 02 is not a number, you can do it as a string.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    Learn BBCode and use it!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2

    Think my support is good? Get more personalized support via a support subscription.

    Need more help with your app? Hire Sencha Services

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts