You can try this also
usually you can subtract directly if both are having the same domain i.e. tfgld.dat or tcdate if not convert the date in same domain and then subtract
otherwise u can use this also
first get the year month day etc from date using
utc.to.date() and then
but check which date is greater.