Results 1 to 2 of 2

Thread: custom datefield set/get value to/as number

  1. #1
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default Answered: custom datefield set/get value to/as number

    I have a need to be able to set and get value from a datefield so that it takes or returns the unix timestamp.

    In order for set to work, I just needed to provide
    Code:
    altFormats: "U"
    .
    I am unable to fetch the unix timestamp with following

    Code:
    getValue: function () {
        var actualValue = this.callParent();
        return actualValue ? actualValue.getTime() : nulll;
    }
    Here is the fiddle

    Thank you for your guidance

  2. nvm, I can use
    Code:
    submitFormat: "U"

  3. #2
    Sencha User
    Join Date
    Dec 2015
    Posts
    118
    Answers
    12

    Default

    nvm, I can use
    Code:
    submitFormat: "U"

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
  •