You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Property values with a date handler have the date stored in a specific format. Below you will find details how this can be set from API.
# Updating a property value with Date handlerfactory=CdbApiFactory('https://cdb-url')
STRING_FORMAT="%a %b %d 00:00:00 CDT %Y"item_api=factory.getItemApi()
property_api=factory.getPropertyValueApi()
now=datetime.datetime.now()
property_date_str=now.strftime(STRING_FORMAT)
property=property_api.get_property_value(property_value_id)
property.value=property_date_stritem_api.update_item_property_value(item_id, property_value=property)