Tips, Tricks & Best Practices

LDeniz
Member

Convert date to Qtr year

SOLVE

Hi all, 

 

I want a custom property named "Renewal Qtr-Yr" that converts the reneal date i.e., 01/08/2024 to quater year format Q3 24.

 

Is this possible?

0 Upvotes
1 Accepted solution
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Convert date to Qtr year

SOLVE

Hi @LDeniz,

 

This can be achieved with a custom calculation property (type string), see below: https://knowledge.hubspot.com/properties/create-calculation-properties

 

karstenkoehler_0-1723540861454.png

 

concatenate((if((month([properties.createdate]) == 1), "Q1 ", if((month([properties.createdate]) == 2), "Q1 ", if((month([properties.createdate]) == 3), "Q1 ", if((month([properties.createdate]) == 4), "Q2 ", if((month([properties.createdate]) == 5), "Q2 ", if((month([properties.createdate]) == 6), "Q2 ", if((month([properties.createdate]) == 7), "Q3 ", if((month([properties.createdate]) == 8), "Q3 ", if((month([properties.createdate]) == 9), "Q3 ", if((month([properties.createdate]) == 10), "Q4 ", if((month([properties.createdate]) == 11), "Q4 ", if((month([properties.createdate]) == 12), "Q4 ", "Unknown"))))))))))))),number_to_string(year([properties.createdate])))

 

Simply replace the create date with your date property.

 

Best regards

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

View solution in original post

0 Upvotes
1 Reply 1
karstenkoehler
Solution
Hall of Famer | Partner
Hall of Famer | Partner

Convert date to Qtr year

SOLVE

Hi @LDeniz,

 

This can be achieved with a custom calculation property (type string), see below: https://knowledge.hubspot.com/properties/create-calculation-properties

 

karstenkoehler_0-1723540861454.png

 

concatenate((if((month([properties.createdate]) == 1), "Q1 ", if((month([properties.createdate]) == 2), "Q1 ", if((month([properties.createdate]) == 3), "Q1 ", if((month([properties.createdate]) == 4), "Q2 ", if((month([properties.createdate]) == 5), "Q2 ", if((month([properties.createdate]) == 6), "Q2 ", if((month([properties.createdate]) == 7), "Q3 ", if((month([properties.createdate]) == 8), "Q3 ", if((month([properties.createdate]) == 9), "Q3 ", if((month([properties.createdate]) == 10), "Q4 ", if((month([properties.createdate]) == 11), "Q4 ", if((month([properties.createdate]) == 12), "Q4 ", "Unknown"))))))))))))),number_to_string(year([properties.createdate])))

 

Simply replace the create date with your date property.

 

Best regards

Karsten Köhler
HubSpot Freelancer | RevOps & CRM Consultant | Community Hall of Famer

Beratungstermin mit Karsten vereinbaren

 

Did my post help answer your query? Help the community by marking it as a solution.

0 Upvotes