NAnt SDK Documentation - v0.92 |

# ReferenceBase.GetFileTimestamp Method

Returns the date and time the specified file was last written to.

[Visual Basic]
Protected Function GetFileTimestamp( _
ByVal fileName As String _
) As Date
[C#]
protected DateTime GetFileTimestamp(
string fileName
);

#### Parameters

fileName
  The file for which to obtain write date and time information.

#### Return Value

A DateTime structure set to the date and time that the specified file was last written to, or MaxValue if the specified file does not exist.

#### See Also

ReferenceBase Class | NAnt.VSNet Namespace