Skip to main content
Solved

Removing Time Stamp from @WeekEnd Date in Reports


Forum|alt.badge.img

Hello all,

I am working on a report in which I want to display receivables based on the week ending + one week.

I am using this formula for the column heading

=Concat( 'Week Ending ', DateAdd( [@WeekEnd], 'w', 1 ) )

It does exactly what I need, however it displays the time stamp at the end of the date and I would like to remove this. What is the best way to do this?
 



I tried using Left String to cut off after the date, but depending on whether the day and month have one digit or two this would be either 8, 9, or 10 total characters so it’s not a viable solution.

=Concat( 'Week Ending ', Left( DateAdd( [@WeekEnd], 'w', 1 ) ,8))

 

How can I format the date to only include dd/mm/yyyy format without the time stamp?

Thanks in advance,

Helen

Best answer by darylbowman

 Try setting the value to this instead:

=Format('Week Ending {0:MM/dd/yyyy}',DateAdd([@WeekEnd],'w',1))

 

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

2 replies

darylbowman
Captain II
Forum|alt.badge.img+13

 Try setting the value to this instead:

=Format('Week Ending {0:MM/dd/yyyy}',DateAdd([@WeekEnd],'w',1))

 


Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • 23 replies
  • May 24, 2023

Magic! That did the trick. Thank you, Daryl.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings