Skip to main content

Add Features Date Field

Comments

3 comments

  • Andrew Flynn

    The difference a comma makes...

     

    I found that the display command on the date value adds a comma that is not accepted by an esri date field. So workflow was providing the value "5/10/2018, 12:00:49 PM" but an esri date field only accepts the value "5/10/2018 12:00:49 PM" (notice no comma in the second value).

     

    So the correct command is to remove the comma from that value as shown below:

    $formTransaction.state.dateAdded.value.display.replace(',','')

    0
  • Permanently deleted user

    Wow, that's quite the impact for one character.

    I took a look at one of my older workflows I'd set up with a date picker and found that I used this for a date attribute:

    $displayform1.state.datePicker1.value.value

    If you wanted to eliminate the extra step with the replace, you could check if that one works as well on your end.

    0
  • Andrew Flynn

    That works too! Thanks for the tip!

    0

Please sign in to leave a comment.