Some MTAs will add a Date field if it doesn't exist, but most won't. Other MTAs (e.g. Exim) will add the Date field if the message is transmitted locally but not when it is transmitted via SMTP. In general the MUA should add a date line, and in this case your script is the MUA.