Use the Now() function to return the current datetime then use .ToString to convert it to text
e.g. Now().toString
You can also use Now().toString(formatSpecified) to supply a specific format e.g.
Now().toString("dd/MM/YYYY HH:mm:ss")
so, something like
outfile.writeline ("{0},{1}", Now().tostring, "My second field" )