Skip to content

Commit c799e3c

Browse files
committed
Added File_SetCreationTime article
1 parent 29b5854 commit c799e3c

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# File_SetCreationTime
2+
3+
`File_SetCreationTime` sets the date and time the file was created.
4+
5+
```csharp
6+
File_SetCreationTime
7+
@path NVARCHAR (MAX),
8+
@creationTime DATETIME
9+
```
10+
11+
## Parameters
12+
13+
- **path**: The file or directory for which to obtain creation date and time information.
14+
- **creationTime**: A DateTime containing the value to set for the creation date and time of path. This value is expressed in local time.
15+
16+
## Example
17+
18+
```csharp
19+
EXEC File_SetCreationTime @path = 'C:\destination', @creationTime = '2018-12-05'
20+
```
21+

docs2/pages/documentations/file/file.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,4 @@ Provides methods for the creation, copying, deletion, moving, and opening of a s
2020
| [File_Move(sourceFileName, destFileName)](/file-move) | Moves a specified file to a new location, providing the option to specify a new file name. | [Try it]()|
2121
| [File_ReadAllText(path)](/file-move) | Opens a text file, reads and returns all the text in the file, and then closes the file. | [Try it]()|
2222
| [File_Replace(sourceFileName, destFileName, destBackupFileName, ignoreMetadataErrors)](/file-replace) | Replaces the contents of a specified file with the contents of another file, deleting the original file, and creating a backup of the replaced file and optionally ignores merge errors. | [Try it]()|
23+
| [File_SetCreationTime(path, creationTime)](/file-set-creation-time) | Sets the date and time the file was created. | [Try it]()|

0 commit comments

Comments
 (0)