| Comment | SQLServer User-Defined Function
PURPOSE
Return the date created of a given file.
If the dateformat (sShortDate) in the users's registry is not known,
or has an unknown format, the default english dateformat M/d/yyyy
is used to convert the date string. SQL Server can throw an error on this.
Return value (DATETIME):
NULL - File does not exist
datetime - Creation date of the file
EXAMPLES
SELECT dbo.fun_FileProperty_DateCreated ('D:\MSSQL\genre.txt')
2014-10-20 16:42:47.000
SELECT dbo.fun_FileProperty_DateCreated ('C:\does not exist.txt')
NULL
HISTORY
2000-01-01 - Created function
2015-11-17 - The sShortDate registry value is now used to convert date string
2024-02-09 - Changed history table
TAGS
<program>
<description>Return the date created of a given file</description>
<generic>1</generic>
<author>Gerrit Mantel</author>
<created>2000-01-01</created>
<lastmodified>2024-02-09</lastmodified>
</program> |