How would I rewrite this to be compatible with T-SQL?

Code:
SELECT Challenges.*, ChallengeStatus(nz([Type],0),nz([Initiated Date],0),nz([OrderedDate],0),nz([DeliveredDate],0),nz([AnsweredDate],0),nz([Completed Date],0),nz([CanceledDate],0)) AS Status FROM Challenges ORDER BY Challenges.ID;