Fixed date fields

If set in the templates database, the date value is set to that, else
set fdate to today and tdate to tomorrow.