Skip to main content
Solved

Changing Date Field to Show Day of Week

  • February 11, 2020
  • 4 replies
  • 51 views

Forum|alt.badge.img+7

Is it possible to have the date field show a day of the week instead of a date?

Best answer by Jeremy_Oglesby

Tobin_Perry wrote:

That’s very helpful! Now is it possible when those items are grouped to order them in the correct order? Right now it orders them alphabetically … Friday, Tuesday, Thursday, Wednesday. Alphabetical seems like the only option.


Well, it’s a little uglier to look at, but adjust the formula to this:

WEEKDAY({Date Field}) & " - " &
DATETIME_FORMAT({Date Field}, 'dddd')

That will prefix the day as text with the number of that day in the week:

That will sort the days in their appropriate week order when sorting by that field.

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+18

It’s not possible to have a Date field do that, but it’s possible to have a Formula field process a date in a Date field and output the day of the week for that date.

DATETIME_FORMAT({Date Field}, 'dddd')

Optionally, you can have it abbreviated by using a different format specifier:

Supported format specifiers for DATETIME_FORMAT

The DATETIME_FORMAT function will allow you to reformat the data from the date-type field into a string of your specifications. This is written in the form "DATETIME_FORMAT(Datetime, 'format s...


Forum|alt.badge.img+7
  • Author
  • Known Participant
  • 12 replies
  • February 11, 2020

That’s very helpful! Now is it possible when those items are grouped to order them in the correct order? Right now it orders them alphabetically … Friday, Tuesday, Thursday, Wednesday. Alphabetical seems like the only option.


Forum|alt.badge.img+18
  • Inspiring
  • 1691 replies
  • Answer
  • February 11, 2020
Tobin_Perry wrote:

That’s very helpful! Now is it possible when those items are grouped to order them in the correct order? Right now it orders them alphabetically … Friday, Tuesday, Thursday, Wednesday. Alphabetical seems like the only option.


Well, it’s a little uglier to look at, but adjust the formula to this:

WEEKDAY({Date Field}) & " - " &
DATETIME_FORMAT({Date Field}, 'dddd')

That will prefix the day as text with the number of that day in the week:

That will sort the days in their appropriate week order when sorting by that field.


Forum|alt.badge.img+7
  • Author
  • Known Participant
  • 12 replies
  • February 11, 2020

Perfect, thanks! Just what I needed…


Reply