One of our web apps at work took data in the form of a pipe delimited text file that had to have a VERY specificly formatted footer. I first wrote a data dump in PHP, which prooved fairly straight forward, but I then had to write the same in ASP for a windows server, heres a comparison of the results: In PHP: echo "***FileFooter|" . $i . "|" . date("H:i:s d/m/Y") . "|"; In ASP: d = date t = time If hour(t) < 10 Then HH = "0" & hour(t) Else HH = hour(t) End If If minute(t) < 10 Then MM = "0" & minute(t) Else MM = minute(t) End If If second(t) < 10 Then SS = "0" & second(t) Else SS = second(t) End If If day(d) < 10 Then DD = "0" & day(d) Else DD = day(d) End If If month(d) < 10 Then MMM = "0" & month(d) Else MMM = month(d) End If If year(d) < 10 Then YY = "0" & year(d) Else YY = year(d) End If Response.Write("***FileFooter|" & i & "|" & HH & ":" & MM & ":" & SS & " " & DD & "/" & MMM & "/" & YY & "|")