Skip to main content
Answer

Formatting Date within Generic Inquiry

  • January 11, 2024
  • 2 replies
  • 414 views

ralph86
Freshman II

I am currently trying to make a PositivePay compliant output from a Generic Inquiry. I am attempting to remove all comma, dash, decimal, and non-numeric characters from all numeric fields. So I would like date to be 010924 as an example. I see that my question has been answered here: 

 

However when I apply the below code to the Style field of APPayment.DocDate it has 0 effect on the output. I notice this solution was posted a year ago and I wonder if there has been some sort of update between then and now which has changed the approach?

=Concat(IIf(Month([APPayment.DocDate]) < 10, '0'+CStr(Month([APPayment.DocDate])), CStr(Month([APPayment.DocDate]))) + IIf(Day([APPayment.DocDate]) < 10, '0'+CStr(Day([APPayment.DocDate])), CStr(Day([APPayment.DocDate]))) + Substring(CStr(Year([APPayment.DocDate])),3,2) )

 

Best answer by ralph86

This was resolved. The correct field to apply the above formula is the data field not style. My mistake!

2 replies

ralph86
Freshman II
  • Author
  • Freshman II
  • Answer
  • January 11, 2024

This was resolved. The correct field to apply the above formula is the data field not style. My mistake!


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • January 11, 2024

Thank you for sharing your solution with the community @ralph86!