Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
alvinford
Contributor III
Contributor III

How to generate Start Time

Hi All,

Facing issue with the time. Need to generate the start time based on the end time and duration.

I have event end time as 00:20:00 (hh:mm:ss) and Duration as 3:20:00(hh:mm:ss).

How can I get the Start Time i.e 09:00:00.

Request your help.

Thanks in Advance.


Regards,
Alvin.
1 Solution

Accepted Solutions
Gysbert_Wassenaar

See attached qvw


talk is cheap, supply exceeds demand

View solution in original post

11 Replies
Gysbert_Wassenaar

EndTime - Duration should give you the start time, 21:00:00 (or 09:00:00 PM) in your case, not 09:20:00. Make sure you work with dates and times, not strings. Use the date# and time# functions if necessary to create dates and times from strings.


talk is cheap, supply exceeds demand
er_mohit
Master II
Master II

hiii...

Interval(time(endtime,'hh:mm:ss')-Time(Duration,'hh:mm:ss'),'hh:mm:ss') as Start_Time

Not applicable

= interval (Time(Time#('12:20:00','hh:mm:ss')) - interval(Time(Time#('3:20:00','hh:mm:ss'))-Time(Time#('0:20:00','hh:mm:ss')),'hh:mm:ss'),'hh:mm:ss')

Bold - Specify hr's format. If you use 12hr Format Specify 12, else 24.

Hope this helps

alvinford
Contributor III
Contributor III
Author

Thanks Gisbert I have rectified the output value.

Regards,

Alvin.

alvinford
Contributor III
Contributor III
Author

Hi Mohit,

Its not giving the desired results.

Regards,

Alvin.

alvinford
Contributor III
Contributor III
Author

Hi Streak,

I can't catch up your logic. I have added the sample data in the Excel with columns EndTime and Duration. Can you please help to achieve StartTime.

Please find the  attachment.

Regards,

Alvin.

Not applicable

Copy the expression and put inside the text object, you will see what your

are expecting.

alvinford
Contributor III
Contributor III
Author

Hi Streak,

I have already verified that.Can't get the expected values.

Regards,

Alvin.

alvinford
Contributor III
Contributor III
Author

Can you please help ...

Regards,

Alvin.