# Timestamps and file output

**URL:** <https://forums.powershell.org/t/timestamps-and-file-output/18385>\
**Category:** PowerShell Help\
**Created:** [January 19, 2022, 3:24pm UTC](https://forums.powershell.org/t/timestamps-and-file-output/18385 "2022-01-19T15:24:33Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![kvprasoon](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.powershell.org/kvprasoon/32/4449_2.png) [@kvprasoon](https://forums.powershell.org/u/kvprasoon)\
**Post date:** [January 20, 2022, 7:38am UTC](https://forums.powershell.org/t/timestamps-and-file-output/18385/9 "2022-01-20T07:38:47Z")

</div>

Couldn’t understand how you executed above code. You should be executing a .ps1 file. When PowerShell is something matters to you task in hand, you should definitely take some time and understand some basics.

Note: Please format code when you post next time. You can do the same for your previous reply.

> [@Welcome to the new PowerShell Forums](https://forums.powershell.org/t/welcome-to-the-new-powershell-forums/7/6):
>
> How to format code in [PowerShell.org](http://PowerShell.org) forums. [Codeformatting\_1]

---

_[View the full topic](https://forums.powershell.org/t/timestamps-and-file-output/18385)._
