Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)

  • RE: Comparison of Dates in SQL

    Yeah, I saw that after I posted my response. Thanks!

  • RE: Comparison of Dates in SQL

    Nevermind, as I look at it closer, I see your point. Thanks for the correction.

    Blessings!

    Amber

  • RE: Comparison of Dates in SQL

    DECLARE @CurrentDate DATETIME

    SET @CurrentDate = GETDATE()

    DECLARE @Sample TABLE

    (

    SomeID INT IDENTITY(1,1)

    ,SomeDate DATETIME

    )

    INSERT INTO @Sample

    SELECT '2009-04-30 18:29'

    UNION ALL SELECT '2009-04-30 10:29'

    UNION...

  • RE: Comparison of Dates in SQL

    I'm not going to argue with you about this. I've been using dateadd(day, 1, date) for about six months and I use it in many different programs and stored...

  • RE: Comparison of Dates in SQL

    Hi Jeff,

    The dates I use do have a time with them (that is how SQL stores them) and dateadd(day, 1, date) still works fine.

    Thanks!

    Amber

  • RE: Comparison of Dates in SQL

    I discovered this several months back, but I use: dateadd(day,1,) as my fix. Just another way of doing it.

    This is VERY useful information! Thanks for posting...

Viewing 6 posts - 1 through 6 (of 6 total)