# Custom date for index page sort order.

**URL:** <https://community.hubspot.com/t/custom-date-for-index-page-sort-order/113813>\
**Category:** CMS Development\
**Created:** [August 5, 2024, 9:28pm UTC](https://community.hubspot.com/t/custom-date-for-index-page-sort-order/113813 "2024-08-05T21:28:09Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![FMesina](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@FMesina](https://community.hubspot.com/u/FMesina)\
**Post date:** [September 3, 2024, 6:42pm UTC](https://community.hubspot.com/t/custom-date-for-index-page-sort-order/113813/3 "2024-09-03T18:42:36Z")

</div>

@SteveHTM,  
I have tried using

`{% set effective_date = module.show_custom_update_date ? module.updated_date : content.publish_date %}`

`{% text “effective_sorting_date” label=“The sorting date”, value=“{{effective_date}}”, export_to_template_context=True %}``

I see it in the post page as:

```auto
 "widget_data": {
 "module_172082412025471_effective_sorting_date": {
 "parent_widget_container": null,
 "label": "The sorting date",
 "value": 1722225600000,
 "export_to_template_context": true,
 "content_editable_values": [
 "value"
 ]
 }
 },

```

But it is not showing up in the blog list and its developer info. I tried using these.

```auto
{{ content.widgets.module_172082412025471_effective_sorting_date.body.value }}
{{ content.widgets.effective_sorting_date.body.value }}

```

Please share possible issues preventing from passing the data? Thank you

---

_[View the full topic](https://community.hubspot.com/t/custom-date-for-index-page-sort-order/113813)._
