## File::SetLastWriteTime method


Sets the last write time of the specified entity as local time.

```cpp
static void System::IO::File::SetLastWriteTime(const String &path, DateTime lastWriteTime)
```


| Parameter | Type | Description |
| --- | --- | --- |
| path | const String\& | The entity whose last write time to set |
| lastWriteTime | DateTime | A [DateTime](../../../system/datetime/) object representing the time to set as local time |

## See Also

* Class [String](../../../system/string/)
* Class [DateTime](../../../system/datetime/)
* Class [File](../)
* Namespace [System::IO](../../)
* Library [Aspose.PUB for C++](../../../)
