CMS Development

RockyP
Member

Setting up Schema, question about generating time/date

SOLVE

Hey! I'm currently setting up a job board and pulling schema through HubDB. Everything works well enough but I'd like to setup the ValidThrough property to automatically generate 30 days from DatePosted which is setup as followed: 

"datePosted" : "{{dynamic_page_hubdb_row.job_date_for_schema|datetimeformat('%m/%d/%Y')}}",

I would like to avoid adding more columns to my HubDB if at all possible. 

 

Is this possible with HubL?

0 Upvotes
1 Accepted solution
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Setting up Schema, question about generating time/date

SOLVE

Hey @RockyP ,

You could use the plus_time filter to add 30 days to the posted date.

https://designers.hubspot.com/docs/hubl/hubl-supported-filters#plus-time

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.

View solution in original post

0 Upvotes
1 Reply 1
alyssamwilie
Solution
Recognized Expert | Elite Partner
Recognized Expert | Elite Partner

Setting up Schema, question about generating time/date

SOLVE

Hey @RockyP ,

You could use the plus_time filter to add 30 days to the posted date.

https://designers.hubspot.com/docs/hubl/hubl-supported-filters#plus-time

If this answer solved your question, please mark it as the solution.

Alyssa Wilie Profile Image

Alyssa Wilie

Web Developerat Lynton

Learn HubL | Get Marketing Insights

HubSpot Elite Solutions Partner
Lynton's HubSpot theme Rubric now available. Click to download.
0 Upvotes