AugForums.com

An Acumatica User Group

  • Free
    • Start Here
    • In-Person Gatherings
    • Power BI Workshop
    • Podcast
    • Rolodex
    • Blog
    • Forums
  • Paid
    • AugSQL
    • GI Course
    • GI Library
    • Consulting
  • Register
Acumatica Forums

By using this website, you agree to our Terms of Use (click here)

Forums
AUG Forums
Acumatica Generic I...
DateTime field only...
 
Notifications
Clear all

Questions DateTime field only showing date in Results

 
Acumatica Generic Inquiries & Pivot Tables
Last Post by FamousMortimer 5 years ago
11 Posts
6 Users
1 Reactions
7,023 Views
RSS
Royce Lithgo
Posts: 557
 Royce Lithgo
Topic starter
December 18, 2018 7:09 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

I've built a GI on SMEmail and the CreatedDateTime field is only showing Date in the output:

I want to see the time as well. Any ideas?


10 Replies
 cisbell
(@cisbell)
Joined: 9 years ago

Member
Posts: 1
February 7, 2019 9:52 am
Reply toRoyce LithgoRoyce Lithgo

Royce - were you able to link back to the Email Activity screen from the SMEmail table?

I try, but get no fields to choose from to act as the key to open the correct email.

Chris


Reply
Royce Lithgo
 Royce Lithgo
(@roycelithgo)
Joined: 6 years ago

Honorable Member
Posts: 557
February 7, 2019 5:48 pm
Reply tocisbell
Royce Lithgo

Yes, works fine for me.


Reply
Royce Lithgo
Posts: 557
 Royce Lithgo
Topic starter
December 18, 2018 7:37 pm
(@roycelithgo)
Honorable Member
Joined: 6 years ago

I can answer this myself... discovered that CreatedDateTime is in UTC and so needed to add 10 hours to that to get the actual local time. This formula gave me the required output:

=DateAdd([SMEmail.CreatedDateTime], 'h', 10 )

Would be nice to display the result in the User's local timezone but not sure how to do that in GI.


Reply
Ellie
 Ellie
(@ellie)
Joined: 6 years ago

Estimable Member
Posts: 129
December 20, 2018 11:58 pm
Reply toRoyce LithgoRoyce Lithgo

You can use the Hour() & minute () functions.

Yes agreed, it would be nice it the local time zone was taken into consideration. 

Had an issue with A GI for a while where I was grabbing the exchange rate using the today() function. I would test it during the day and it would work, but later in the evening when it was passed 12am(hence it was no longer 'today') in the Acumatica time zone, my GI would fail would be empty ... Caused a lot of issues until I realized what was happening 


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
December 28, 2018 6:40 pm
(@timrodman)
Famed Member
Joined: 11 years ago

Does this help?

https://www.augforums.com/acumatica-generic-inquiry-date-time/


Reply
 Moira Peterson
(@moira-peterson)
Joined: 7 years ago

Member
Posts: 3
February 11, 2019 5:53 pm
Reply toTim RodmanTim Rodman

Tim,

This worked to display the time but we want the user to be able to enter an appointment time but it only allows them to select a calendar date.  Is there an additional step that can be done to accomplish this?

 

 


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
February 12, 2019 7:05 am
(@timrodman)
Famed Member
Joined: 11 years ago

Hi Moira,

You want them to enter a time like 8:04am and have it filter to show all appointments for 8:04am?


Reply
Posts: 3
 Moira Peterson
February 12, 2019 9:52 am
(@moira-peterson)
Member
Joined: 7 years ago

Tim,

The generic inquiry is an update inquiry. The purpose is to allow the user to change the Dock appointment on multiple sales orders at one time. They enter the dock appointment on each sales order and then if the driver misses the appointment they have to reschedule. Many times our loads have ten plus sales orders so it’s very time consuming to maintain the missed appointments. The GI I created works to update the date but the time field also only allows them to enter the date not time. The field in the results shows 01/01/1900 and the original appointment time, it’s when they go into update that it doesn’t work.

I am a just a user but an IT colleague told me this about the field.  The dock schedule is custom for us but I would assume there are other instances of time fields in Acumatica that would have the same problem.

The data type in the database for the DockAppointmentTime is datetime2 which does include the date even if the date portion is 0 (or 1/1/1900).  The data in the SQL db looks the same and includes the 1/1/1900.

 

Thank you for your help.

 

 


Reply
Tim Rodman
Posts: 3204
 Tim Rodman
Admin
February 23, 2019 12:27 am
(@timrodman)
Famed Member
Joined: 11 years ago

Ah, now I see. As far as I can tell, a DateTime field only allows you to enter the Date portion. You might need a separate custom field for the Time portion.


Reply
FamousMortimer
Posts: 19
 FamousMortimer
June 16, 2021 8:32 am
(@famousmortimer)
Eminent Member
Joined: 6 years ago

I know this doesn't have to do with this case but if Google brings you here like me, this was my issue.

I was using a custom field but I had inadvertently used the [PXDBDate] attribute instead of [PXDBDateAndTime]


Reply
Tim Rodman reacted
Forum Jump:
  Previous Topic
Next Topic  
Forum Information
Recent Posts
Unread Posts
Tags
  • 12 Forums
  • 2,533 Topics
  • 11 K Posts
  • 40 Online
  • 2,420 Members
Our newest member: Katerina Pawlowski
Latest Post: Nested SubReport Issue
Forum Icons: Forum contains no unread posts Forum contains unread posts
Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Online Members

  • cschwark
Acumatica Forums

Terms of Use & Disclaimers :: Privacy Policy

Copyright © · AUG Forums, LLC. All rights reserved. This website is not owned, affiliated with, or endorsed by Acumatica, Inc.

‹›×

    ‹›×