# Creating Custom Components for Perspective. Customizing Properties

**URL:** <https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [November 20, 2023, 6:54pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152 "2023-11-20T18:54:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Peter\_Wanner](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Peter\_Wanner](https://forum.inductiveautomation.com/u/Peter_Wanner)\
**Post date:** [November 20, 2023, 6:54pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152/1 "2023-11-20T18:54:14Z")

</div>

Hello,  
I am developing a component for Ignition Perspective. I wanted to know how to format the props.json file to set to today's date.

Thanks!

---

<div class="post-metadata">

**Author:** ![Peter\_Wanner](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Peter\_Wanner](https://forum.inductiveautomation.com/u/Peter_Wanner)\
**Post date:** [November 20, 2023, 7:18pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152/3 "2023-11-20T19:18:31Z")

</div>

I got that part. I am trying to set a default value for it, preferably for today's date.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 20, 2023, 7:21pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152/4 "2023-11-20T19:21:43Z")

</div>

You can't, via the `props.json`. Setting today's date would be a runtime value. You can do so in your actual component's frontend code.

---

<div class="post-metadata">

**Author:** ![Peter\_Wanner](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@Peter\_Wanner](https://forum.inductiveautomation.com/u/Peter_Wanner)\
**Post date:** [November 20, 2023, 7:34pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152/5 "2023-11-20T19:34:29Z")

</div>

Okay if we can't set the current date, then I would like to know how to set it to a date. Just out of curiosity.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 20, 2023, 7:37pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152/6 "2023-11-20T19:37:22Z")

</div>

I think the point is to **not** set it at all. That is an operation that the designer arranges, using bindings or scripts. Your front-end code can (and should) use an _ **internal default** _ when nothing has been set.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 20, 2023, 8:20pm UTC](https://forum.inductiveautomation.com/t/creating-custom-components-for-perspective-customizing-properties/82152/7 "2023-11-20T20:20:13Z")

</div>

In theory, by adding a `default` key with a value in it. I'd expect an epoch milliseconds number to work if anything does, but I also don't think we test anywhere with providing a default for a date value property via the schema specifically because it almost never makes sense to do so.
