Though I guess Netsuite has the date created date ...
# suitescript
b
Though I guess Netsuite has the date created date natively so you just need to get the date closed