Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Date Time Conversion Formula explanation

Date Time Conversion Formula explanation

Date Time Conversion Formula explanation

Hi all
This is sort of a backwards request in that I have the solution but need to know why it's working. I have a report that uses these formulas to convert the date from UTC to the local user's PC time. (So I've been told). However, I don't understand exactly HOW they work. Could someone please explain how each individual formula is functioning? Again, I know what it's doing (taking a date/time and converting it) but I want to know the reasoning behind what it's doing. For example, I don't understand the significance of "" and why it's placed before and after the "TimeZoneString" formula. Thanks in advance!

1. @FromDateUTC: ShiftDateTime({?From Date}, "", {@TimeZoneString})

2. @TimeZoneString: ""

3. @StartDate: ShiftDateTime({RPT_EM_RESULTS_ROUTE_V.start_date}, {@TimeZoneString}, "")

4. @ToDateUTC: ShiftDateTime(DateAdd('s',((23*60+59)*60+59),{?To Date}), "", {@TimeZoneString})

RE: Date Time Conversion Formula explanation

From the entry for ShiftDateTime() in Crystal Help: "" (an empty string indicates the local time zone from the OS settings)


Senior Manager, Data & Analytics

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close