I think you could use only part of the year
select * from Angkasa_UnpostedRecords where year(TranDate) = year(@FromDate)
If TranDate and @FromDate are not datetime fields, then
select * from Angkasa_UnpostedRecords where year(convert(datetime,TranDate,103)) = year(convert(datetime,@FromDate,103))
with opening and closing brackets.
source share