Datetime DataType as Parameter

  • Hi

    I have datetime parameter. In select query i want to compare it will only datePart

    Thanks

  • Maybe cast to date will help:

    select cast(getdate() as date)

  • If you are only interested in the DATE part, why did you define it as a DATETIME parameter instead of a DATE parameter?

    Drew

    J. Drew Allen
    Business Intelligence Analyst
    Philadelphia, PA

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply