Skip to main content
Solved

Formula to convert date into quarter add display it in full text

  • May 12, 2023
  • 5 replies
  • 86 views

Forum|alt.badge.img+3
  • New Participant
  • 2 replies

Hello,

I would like a formula to convert date fild  into quarter and  add display it in full text.

Exemple:

Dates between 01/01/23 to 31/03/23  will display " first quarter"

Dates between 01/04/23 to 31/07/23  will display " second quarter"

and so on...

Thanks for your precious help.

 

Remy

 

 

 

 

 

Best answer by TheTimeSavingCo

Try using 'Qo' with the formula 'DATETIME_FORMAT()'

Here's a link to the specifiers available for use with DATETIME_FORMAT()

5 replies

Grunty
Forum|alt.badge.img+15
  • Inspiring
  • 69 replies
  • May 12, 2023

@Remy_K wrote:

I would like a formula to convert date fild  into quarter and  add display it in full text.

Exemple:

Dates between 01/01/23 to 31/03/23  will display " first quarter"

Dates between 01/04/23 to 31/07/23  will display " second quarter"

and so on...


Care what you wish! 😲


TheTimeSavingCo
Forum|alt.badge.img+31
  • Brainy
  • 6410 replies
  • Answer
  • May 13, 2023

Try using 'Qo' with the formula 'DATETIME_FORMAT()'

Here's a link to the specifiers available for use with DATETIME_FORMAT()


Grunty
Forum|alt.badge.img+15
  • Inspiring
  • 69 replies
  • May 13, 2023

Try using 'Qo' with the formula 'DATETIME_FORMAT()'

Here's a link to the specifiers available for use with DATETIME_FORMAT()


Your suggestion would work for a conventional request. However I don’t think it would work for the present case.
He’s asking for a formula that assigns July dates to "second quarter" 👽


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 2 replies
  • May 20, 2023

Try using 'Qo' with the formula 'DATETIME_FORMAT()'

Here's a link to the specifiers available for use with DATETIME_FORMAT()


Thank you: 

DATETIME_FORMAT(
  SET_LOCALE({Date},'fr'), 
  'Qo'
)
This works But only returns 1er,2,3,4 instead of 1er,2éme,3éme,4éme. Weird...

 


Forum|alt.badge.img+3
  • Author
  • New Participant
  • 2 replies
  • May 20, 2023

Your suggestion would work for a conventional request. However I don’t think it would work for the present case.
He’s asking for a formula that assigns July dates to "second quarter" 👽


Thank you