I created a stored procedure as following,
CREATE PROCEDURE [dbo].[Access_GetDate]
(
@Name varchar(255)
)
AS
SELECT TOP(1) Employee.StartDate
FROM Employee
WHERE Employee.Name = @Name;
its working properly but returning date in this format
2012-10-24 00:00:00.000
However I want it in this format,
2012 10 24
only
You can use the following:
See SQL Fiddle with Demo