I have this SQL query:
SELECT DISTINCT
[BatchCode]
,SUM([Quantity]) as \'Created\'
,[TotalQuantity]
,[Status]
Use CAST or CONVERT to alter the DATETIME format so the time portion is omitted:
SELECT [BatchCode],
SUM([Quantity]) as 'Created',
[TotalQuantity],
[Status],
[Destination],
CONVERT(VARCHAR(10), [DateCreated], 101) AS datecreated,
[CreatedBy]
FROM [FGIS].[dbo].[DropshipPackinglist]
GROUP BY BatchCode,
TotalQuantity,
Status,
Destination,
CreatedBy,
ModifiedBy,
CONVERT(VARCHAR(10), [DateCreated], 101)