Forum Replies Created

Viewing post 1 (of 1 total)

  • RE: No: of day between two dates

    Here's a query hat outputs what I'm thinking you want. You could easily turn it into a function that returns a table.

    DECLARE

    @FromDate smalldatetime,

    @ToDate smalldatetime

    DECLARE

    @DaysFromTo TABLE (DayInBetween datetime)

    select @FromDate =...

Viewing post 1 (of 1 total)