Hi,
What I would suggest is creating a job variable to hold the timestamp, using a Set Variable task at the beginning of your job to set the timestamp in that variable, and then you'd have two SQL tasks to pull your results. You could then have two Write File tasks, one for each SQL task to write the SQL task's output to the file, and your destination file would use the value in your timestamp variable.