vdvd evo ako ti slučajno ovo pomogne što iz timestampa vadi datum(string(DT_STR duljine 16)):
(DT_STR,16,1252)((DT_WSTR,4)YEAR(OrderDate) + "-" + (MONTH(OrderDate) < 10 ? (DT_WSTR,2)("0" + (DT_WSTR,1)MONTH(OrderDate)) : (DT_WSTR,2)MONTH(OrderDate)) + "-" + (DAY(OrderDate) < 10 ? ((DT_WSTR,2)("0" + (DT_WSTR,1)DAY(OrderDate))) : ((DT_WSTR,2)DAY(OrderDate))))
i ovo što iz timestampa vadi time(string(DT_STR duljine 16):
(DT_STR,16,1252)(((DATEPART("HH",OrderDate) < 10) ? ((DT_WSTR,2)("0" + (DT_WSTR,1)DATEPART("HH",OrderDate))) : ((DT_WSTR,2)DATEPART("HH",OrderDate))) + ":" + ((DATEPART("mi",OrderDate) < 10) ? ((DT_WSTR,2)("0" + (DT_WSTR,1)DATEPART("mi",OrderDate))) : ((DT_WSTR,2)DATEPART("mi",OrderDate))) + ":" + ((DATEPART("ss",OrderDate) < 10) ? ((DT_WSTR,2)("0" + (DT_WSTR,1)DATEPART("ss",OrderDate))) : ((DT_WSTR,2)DATEPART("ss",OrderDate))))