Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parameters Date instead DateTime

Status
Not open for further replies.

codrutza

Technical User
Mar 31, 2002
357
IE
SQL Server Management Studio Express

Maybe you help me with this:

I have the next script:
create PROCEDURE procedA
@FromDepDate smalldatetime,
@ToDepDate smalldatetime
AS

SELECT

Table.NNumber

FROM Table
WHERE Table. LIKE 'ao%'
AND Table.Company='A'

AND @FromDepDate<=Table.DepDate
AND Table.DepDate<=@ToDepDate

And I base on it a report made with CrystalReports.

When the users execute the report, appears a calendar at each parameter @FromDepDate, @ToDepDate, including the time(minutes, seconds...) and I want to appear just the date.

I want to covert from smalldatetime in smalldate or something like that.

Is it possible?
 
you can also convert it to a string and take the first 10 characters.

Simi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top