Login
Register
Search
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Forums
Performance Management
Lawson Business Intelligence/Reporting/Crystal
UTC Conversions on Date Range Functions
Home
Forums
Jobs
LawsonGuru
LawsonGuru Letter
LawsonGuru Blog
Worthwhile Reading
Infor Lawson News Feed
Store
Store FAQs
About
Who's On?
Membership:
Latest:
Wayne Willis
Past 24 Hours:
0
Prev. 24 Hours:
0
Overall:
5190
People Online:
Visitors:
247
Members:
0
Total:
247
Online Now:
New Topics
Lawson Landmark
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
IPA/ProcessFlow
Executing IPA from PR160
5/3/2024 2:46 PM
We're facing a situation where we need to upda
S3 Customization/Development
Cobol - Extract Current Time
4/24/2024 7:21 PM
How do you extract just the Current System Time in
Lawson Landmark
LPL INSTR Functions
4/5/2024 8:32 PM
I'm writing a simple report using the Create R
Infor SCM
Translating 856 to get the ~ REF^CN^ field
4/3/2024 8:24 PM
We are trying to get the tracking number which is
IPA/ProcessFlow
Sample XML file create Flow
4/3/2024 3:43 PM
Hello everyone, I am new to creating XML files
Lawson S3 HR/Payroll/Benefits
bn105 error message
3/26/2024 6:40 PM
I need to change some of the set ups in our Life I
IPA/ProcessFlow
IPA executing Job
3/13/2024 7:08 PM
New to the IPA world and was wondering, can an IPA
Lawson S3 HR/Payroll/Benefits
Life Age Reduction on benefits plans
3/12/2024 7:15 PM
For our optional life we have an age based coverag
Lawson S3 HR/Payroll/Benefits
BN53.1 Add-In
3/7/2024 3:31 PM
We are migrating to Solstice. They require a
Top Forum Posters
Name
Points
Greg Moeller
4184
David Williams
3349
JonA
3288
Kat V
2984
Woozy
1973
Jimmy Chiu
1883
Kwane McNeal
1437
Ragu Raghavan
1354
Roger French
1311
mark.cook
1244
Forums
Unanswered
Active Topics
Most Liked
Most Replies
Search Forums
Search
Advanced Search
Topics
Posts
Prev
Next
Forums
Lawson Business Intelligence/Reporting/Crystal
UTC Conversions on Date Range Functions
Sort:
Oldest First
Most Recent First
You are not authorized to post a reply.
Author
Messages
Joan Herzfeldt
Veteran Member
Posts: 74
7/31/2017 6:59 PM
I'm accessing a database that has dates stored in UTC so even though 'an action was taken' on 6/30/2017 20:12:00 Central time (where I'm located) , due to the conversion to UTC this record does not show up on the report if I use " in the LastFullMonth" because it converts to 7/1/2017 01:12:00 UTC. I know how to replace LastFullMonth with two separate date parameters. What I want to know is... Is there a way to convert any of the 'Date Range Functions' (ie: LastFullMonth) to take the time zone into consideration? Similar to how ShiftDateTime() works on a single date?
FYI: We are looking for solution to correct multiple reports, not just one.
Thanks - Joan
Tags:
UTC
,
ShiftDateTime
,
Date Range Function
John Henley
Senior Member
Posts: 3349
8/3/2017 2:29 PM
It depends on your database, and how you're accessing the data. If you're using custom coding the data via stored procedures, views, or SQL commands, you can include that decoding within the SQL that is populating the data. In other words, return both the true UTC date/time stamp and the local date/time stamp, and filter in the report, or pass the local time zone and start/end dates as parameters to the backed database and select in the database SQL. It sounds like you're accessing IBM DB2 tables via Crystal, so you can use a SQL expression field (faster since evaluation is done on the server, but specific to the database, and gives you access to the backed database functions). You can also code it in a formula (see special fields for data time zone and print time zone) and do the filtering in record selection (which is slower than SQL expressions since evaluation is done within the report). Lastly, you can also explore custom functions that plugs into Crystal such as CUT:
http://www.milletsoftware...cutlightBenefit.htm.
Tags:
UTC
,
ShiftDateTime
,
Date Range Function
You are not authorized to post a reply.