if the code for generating the date is added correctly to the value of the hidden form elements, but it is not storing in the database, then I would double check that the subscribe date and expiry date column are bound to the hidden elements in the insert record behavior.
if you need further assistance I would need a copy of your page in a zip archive to examine the code