Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Using DateAdd() to increment hours AND minutes

$
0
0

Hi there,

I'm using Report Designer 1.0.

I would like to add 23 hours & 59 minutes to a date.

I typed the following into the Edit Expression editor for a date parameter:

=DateAdd(DateInterval.Hour,23, Parameters!dt_DATEOFISSUE.Value) + DateAdd(DateInterval.Minute,59, Parameters!dt_DATEOFISSUE.Value)

...which doesn't work.

FWIW, the following DOES work: =DateAdd(DateInterval.Hour,23, Parameters!dt_DATEOFISSUE.Value), but I only end up with (ex) 8/8/2013 11:00PM.

Everywhere I looked only talked about adding either days, hours, minutes, seconds, etc., but wasn't able to find something that talks about adding a combination of these...

Any tips?

Many thanks,

Jens



Viewing all articles
Browse latest Browse all 10045


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>