Skip to main content
Solved

Adding Datetime Format

  • May 3, 2023
  • 4 replies
  • 34 views

Forum|alt.badge.img+3
  • Participating Frequently

I have three columns: 1st is the Sales Last Month, 2nd is Sales This Month and 3rd one shows the ratio of the two columns. I want to add the DateTime format so Sales Field will look - Sales: 137/150 (Apr: 201/200) instead of Sales: 137/150 (201/200).

 

 

 

Best answer by aleaja

@Yvia  try something like this:

DATETIME_FORMAT( TODAY(), 'MMM' ) &" sales: " &{Sales this month} &" (" &DATETIME_FORMAT( DATEADD( TODAY(), -1,'month' ), 'MMM' ) &" sales: " &{Sales last month} &")"

 

4 replies

TheTimeSavingCo
Forum|alt.badge.img+31

Does this record contain a field with a Date field that contains the date time you'd like to format?  Could you provide a screenshot of the whole record?


Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • May 3, 2023

Does this record contain a field with a Date field that contains the date time you'd like to format?  Could you provide a screenshot of the whole record?


There's no field date in this table. Is it still possible by adding using DATETIME_FORMAT(DATEADD(TODAY(),-1,‘month’),‘MMM’)?


Forum|alt.badge.img+5
  • Inspiring
  • Answer
  • May 3, 2023

@Yvia  try something like this:

DATETIME_FORMAT( TODAY(), 'MMM' ) &" sales: " &{Sales this month} &" (" &DATETIME_FORMAT( DATEADD( TODAY(), -1,'month' ), 'MMM' ) &" sales: " &{Sales last month} &")"

 


Forum|alt.badge.img+3
  • Author
  • Participating Frequently
  • May 3, 2023

@Yvia  try something like this:

DATETIME_FORMAT( TODAY(), 'MMM' ) &" sales: " &{Sales this month} &" (" &DATETIME_FORMAT( DATEADD( TODAY(), -1,'month' ), 'MMM' ) &" sales: " &{Sales last month} &")"

 


You are awesome!!! Thank you!