commonfields:
  id: SetDateField
  version: -1
name: SetDateField
script: |-
  from time import strftime

  field_name = demisto.args()['fieldName']

  t = strftime("%b %d %H:%M:%S")
  res = demisto.executeCommand("IncidentSet", {"customFieldName":field_name,"customFieldValue":t})
  demisto.results(res)
type: python
tags:
- Utility
comment: Sets a custom incident field with current date
enabled: true
args:
- name: fieldName
  required: true
  description: "The name of the incident custom field of type date"
scripttarget: 0

commonfields:
  id: SetDateField
  version: -1
name: SetDateField
script: |-
  from time import strftime

  field_name = demisto.args()['fieldName']

  t = strftime("%a, %d %b %Y %H:%M:%S %Z")
  res = demisto.executeCommand("IncidentSet", {"customFieldName":field_name,"customFieldValue":t})
  demisto.results(res)
type: python
tags:
- Utility
comment: Sets a custom incident field with current date
enabled: true
args:
- name: fieldName
  required: true
  description: "The name of the incident custom field of type date"
scripttarget: 0
releaseNotes: "Change SetDateField time format, to include year properlly"
Change SetDateField time format, to include year properlly
Change SetDateField time format, to include year properlly
