Skip to main content
Answer

Appointment CreatedDateTime - Display as Date and Time in GI

  • October 10, 2024
  • 4 replies
  • 160 views

chrislower
Jr Varsity III
Forum|alt.badge.img

I have an Appointment GI that I am wanting to show the Date  + Time in the results.  If I add the field directly to the results grid it only shows a Date.  

If I do: =[FSAppointment.CreatedDateTime], it does show the Date and Time in the GI but in UTC.  Is there a standard way to show the time in a GI for this field or am I required to do the dateadd feature to adjust.

 

Thanks
Chris Lower

Best answer by darylbowman

You can add the CRCase DAC to the GI tables (no need to join it) and set your date/time field’s Schema to CRCase.CreatedDateTime (or it may be called Reported Date in the UI). This field is configured to display date and time and will do so with respect to the current user’s time zone.

4 replies

Manikanta Dhulipudi
Captain II
Forum|alt.badge.img+15

Hi @chrislower You need to convert the time from UTC to PST/EST.

It would look something like this: =dateadd(=[FSAppointment.CreatedDateTime], ‘h’, -7).


Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • December 24, 2024

Hi ​@chrislower were you able to find a solution? Thank you!


chrislower
Jr Varsity III
Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • December 27, 2024

@Chris Hackett 

Unfortunately, I didn’t find a solution quickly that allowed for the use of a native function within Acumatica to adjust this by user TZ.  I am confident there probably is one, but since all of our employees are currently within the Eastern TZ, I hard coded the result as: =dateadd([FSAppointment.CreatedDateTime],'h', -4)

 

I will have to adjust this for Daylight Savings time as it comes up.

 

Sorry!


darylbowman
Captain II
Forum|alt.badge.img+15
  • Answer
  • December 27, 2024

You can add the CRCase DAC to the GI tables (no need to join it) and set your date/time field’s Schema to CRCase.CreatedDateTime (or it may be called Reported Date in the UI). This field is configured to display date and time and will do so with respect to the current user’s time zone.