Solved

Removing Time Stamp from @WeekEnd Date in Reports

  • 24 May 2023
  • 2 replies
  • 122 views

Userlevel 3
Badge

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

icon

Best answer by darylbowman 24 May 2023, 19:21

View original

2 replies

Badge +11

 Try setting the value to this instead:

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

 

Userlevel 3
Badge

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

Reply


About Acumatica ERP system
Acumatica Cloud ERP provides the best business management solution for transforming your company to thrive in the new digital economy. Built on a future-proof platform with open architecture for rapid integrations, scalability, and ease of use, Acumatica delivers unparalleled value to small and midmarket organizations. Connected Business. Delivered.
© 2008 — 2024  Acumatica, Inc. All rights reserved