Skip to main content

Sort records by multiple date fields


I need help writing a script or formula that will allow me to sort records by the earliest date of two date fields. I’m trying to avoid having to create a third date field. Thanks!

4 replies

Forum|alt.badge.img+16
  • Inspiring
  • 532 replies
  • May 16, 2022

Hi @Kat_Dalager
Maybe try this (edit updated for earliest date):

IF({Date 1}<{Date 2}, {Date 1}, {Date 2})


  • Author
  • New Participant
  • 3 replies
  • May 16, 2022
Vivid-Squid wrote:

Hi @Kat_Dalager
Maybe try this (edit updated for earliest date):

IF({Date 1}<{Date 2}, {Date 1}, {Date 2})


Thanks, I’ll try it!


  • Author
  • New Participant
  • 3 replies
  • May 16, 2022
Vivid-Squid wrote:

Hi @Kat_Dalager
Maybe try this (edit updated for earliest date):

IF({Date 1}<{Date 2}, {Date 1}, {Date 2})


It seems to be taking the earliest date and subtracting a day. Any idea what I did wrong?


  • Author
  • New Participant
  • 3 replies
  • May 16, 2022
Kat_Dalager wrote:

It seems to be taking the earliest date and subtracting a day. Any idea what I did wrong?


I think I know what I did. I clicked off the “same time zone for all collaborators.” I clicked it back on and it worked. Thank you!


Reply