Results 1 to 2 of 2

Thread: Date value: new Date()

  1. #1
    Touch Premium Member
    Join Date
    Sep 2010
    Location
    Nashville, TN
    Posts
    53
    Vote Rating
    4
      0  

    Default Date value: new Date()

    I'm trying to default the value of a Date Picker Field to today's date. In the value field, the validation will not pass other than m/d/y. I've tried a number of different ways to get around it, but have not been successful. Is there a way around it? known bug? special format that I have not tried yet? Thanks.

  2. #2
    Sencha User
    Join Date
    Sep 2011
    Location
    Paris
    Posts
    11
    Vote Rating
    0
      0  

    Default Work around to default new Date()

    I use the evil command 'eval'

    instead of the default value 'new Date()'

    use

    eval('new Date()')

Posting Permissions

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