Tips, Tricks & Best Practices

LDeniz
Miembro

Convert date to Qtr year

resolver

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 Me gusta
1 Soluciones aceptada
karstenkoehler
Solución
Miembro del salón de la fama | Partner
Miembro del salón de la fama | Partner

Convert date to Qtr year

resolver

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.

Ver la solución en mensaje original publicado

0 Me gusta
1 Respuesta 1
karstenkoehler
Solución
Miembro del salón de la fama | Partner
Miembro del salón de la fama | Partner

Convert date to Qtr year

resolver

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 Me gusta