# the code to set default value to from date property to past date automatically

**URL:** <https://forums.pega.com/t/the-code-to-set-default-value-to-from-date-property-to-past-date-automatically/2137>\
**Category:** General\
**Tags:** pega-academy\
**Created:** [January 28, 2022, 6:41am UTC](https://forums.pega.com/t/the-code-to-set-default-value-to-from-date-property-to-past-date-automatically/2137 "2022-01-28T06:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![avinasha2922](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@avinasha2922](https://forums.pega.com/u/avinasha2922)\
**Post date:** [January 28, 2022, 6:41am UTC](https://forums.pega.com/t/the-code-to-set-default-value-to-from-date-property-to-past-date-automatically/2137/1 "2022-01-28T06:41:32Z")

</div>

the code to set default value to from date property to past date automatically

---

<div class="post-metadata">

**Author:** ![PoojaGadige](https://yyz2.discourse-cdn.com/pega/user_avatar/forums.pega.com/poojagadige/32/9866_2.png) [@PoojaGadige](https://forums.pega.com/u/PoojaGadige)\
**Post date:** [March 22, 2022, 7:17am UTC](https://forums.pega.com/t/the-code-to-set-default-value-to-from-date-property-to-past-date-automatically/2137/2 "2022-03-22T07:17:46Z")

</div>

Hello @AVINASHL4108

Did you check out this similar [post](https://collaborate.pega.com/question/question-setting-default-value)on setting a default value to a property?

Have you checked out this [post](https://collaborate.pega.com/question/how-set-default-value-property)? or this [post](https://collaborate.pega.com/question/setting-default-property-values-challenge)?

Thank you
