Solved

Help me with Date time manipulation

Posted on 2013-06-26
5
435 Views
Last Modified: 2013-06-26
I have a date stamp, let
6/24/2013 9:32:04 PM

i want to deduct 7 hours

and get
6/24/2013 2:32:04 PM

In Business Objects i am using the formula :

= RelativeDate([DateToConvert];-1)------gives me subtraction of 1 day or 24 hours.
7 hours is 0.29 of 1 day and i can use this
= RelativeDate([DateToConvert];-0.29)

but it does not work exactly
So the question is how to deduct hours from the date?
0
Comment
Question by:rfedorov
  • 3
5 Comments
 
LVL 2

Expert Comment

by:eli411
ID: 39278960
http://forums.asp.net/t/1609801.aspx/1

then you subtract the hours using this example~!
0
 
LVL 2

Expert Comment

by:eli411
ID: 39278962
0
 
LVL 2

Expert Comment

by:eli411
ID: 39278966
0
 
LVL 100

Accepted Solution

by:
mlmcc earned 500 total points
ID: 39279000
Which tool are you using?

Is it Crystal?
Crystal has a DateAdd function

DateAdd("h",-7,{DateField})

Is it WebI?
Try

= RelativeDate([DateToConvert];-7/24)


What doesn't seem to be working?

mlmcc
0
 

Author Closing Comment

by:rfedorov
ID: 39279061
Thank you very much
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In database programming, custom sort order seems to be necessary quite often, at least in my experience and time here at EE. Within the realm of custom sorting is the sorting of numbers and text independently (i.e., treating the numbers as number…
Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question