I have created a form where I have a button that runs a code to transfer information to a text file.
When there are records that should be transferred the batch number, that is the date in Now format, is entered. This is where I used your suggestion
v_Batch = Format(Now, "mm/dd/yyyy hh:nn:ss")...