added feature to set the transaction date