Skip to main content
Solved

Extract Day from a date in text format

  • June 18, 2024
  • 4 replies
  • 339 views

Forum|alt.badge.img+2

Hello,

I have a Date field called “Delivery Date” (Ex : 10/06/2024). From here, I want to extract the day of the week in text format (Example :10/06/2024 is “Monday”) and my calculated field should show similar to the example here. I tried WEEKDAY(‘Delivery Date’) and it returns day of the week but in number format and I tried again TEXT(WEEKDAY(‘Delivery date”), again it does not work. How to convert weekday into Text format like Mon,Tue,etc…?

 

thanks

Mohan

Best answer by Weining Ben

Hello Mohan,

Firstly, you can create a Weekday dimension.

Then, assuming your Delivery Date column is in a transaction list, so you can achieve your needs by referencing the Weekdays dimension:

Hope my answers helps.
Weining

4 replies

Issam Moalla
Employee
Forum|alt.badge.img+11
  • Employee
  • 69 replies
  • June 18, 2024

Hi @Mohan ,

A possible solution is to refer to the name property in “Day of Week” Dimension.

 Your formula would be:

ITEM(Weekday('Delivery date'),'Day of Week'.Id).Name


Where ITEM will search for the Day of week item based on the unique property ID.
 

Hope this helps,
Issam


Forum|alt.badge.img+8
  • Master Trendsetter
  • 17 replies
  • Answer
  • June 18, 2024

Hello Mohan,

Firstly, you can create a Weekday dimension.

Then, assuming your Delivery Date column is in a transaction list, so you can achieve your needs by referencing the Weekdays dimension:

Hope my answers helps.
Weining


Forum|alt.badge.img+2
  • Author
  • Author
  • 6 replies
  • June 18, 2024

Thanks for the solution. I will go with the reference dimension method


Sharon Conroy
Wallflower
Forum|alt.badge.img+8
  • Wallflower
  • 19 replies
  • February 12, 2025

Hi ​@Mohan, in case you missed it we recently introduced a new option that allows you to have two new native Calendar dimensions: Week dimension and Week of Year dimension. Check out the updated article below: 
 



Thanks, Sharon