Skip to main content
Solved

Isolate the days from a date

  • February 20, 2023
  • 5 replies
  • 50 views

Nathan_Ramey
Forum|alt.badge.img+9

I was wondering how can I just show the days from any given date?

Best answer by Ron_Daniel

@Nathan_Ramey thanks for clarifying! In that case, you just need this formula:

DATETIME_FORMAT(Date, "DD")
or, if you don't want the leading zero on single-digit days, then
DATETIME_FORMAT(Date, "D")

5 replies

TheTimeSavingCo
Forum|alt.badge.img+31

I'm not sure I follow I'm afraid.  Any chance you could provide an example or two?


Ron_Daniel
Forum|alt.badge.img+21
  • Inspiring
  • February 21, 2023

@Nathan_Ramey , are you asking for a date calculator, to determine how many days difference there is between today and a given date? If so, try this formula:

DATETIME_DIFF(TODAY(), {Date}, 'days')





Nathan_Ramey
Forum|alt.badge.img+9
  • Author
  • Known Participant
  • February 22, 2023

Thank you for the replies but I was looking for just a way to only see the day of the date. For example, today is the 22nd and instead of seeing 2/22/23 I only want to see just the date so just "22."


Ron_Daniel
Forum|alt.badge.img+21
  • Inspiring
  • Answer
  • February 22, 2023

@Nathan_Ramey thanks for clarifying! In that case, you just need this formula:

DATETIME_FORMAT(Date, "DD")
or, if you don't want the leading zero on single-digit days, then
DATETIME_FORMAT(Date, "D")

Nathan_Ramey
Forum|alt.badge.img+9
  • Author
  • Known Participant
  • February 23, 2023

@Nathan_Ramey thanks for clarifying! In that case, you just need this formula:

DATETIME_FORMAT(Date, "DD")
or, if you don't want the leading zero on single-digit days, then
DATETIME_FORMAT(Date, "D")

Thank you!