Skip to main content

[Powershell]: Get-Date and commonly used date format

Get-Date and commonly used date format in powershell


PS C:\Users\Administrator> get-date
Thursday, June 25, 2015 9:42:24 AM

PS C:\Users\Administrator> $today = get-date
PS C:\Users\Administrator> echo $today

Thursday, June 25, 2015 9:43:21 AM

PS C:\Users\Administrator> $todayshort = get-date -format yyMMdd
PS C:\Users\Administrator> echo $todayshort
150625

PS C:\Users\Administrator> $todaylong = get-date -format yyyyMMdd
PS C:\Users\Administrator> echo $todaylong
20150625

PS C:\Users\Administrator>

Popular posts from this blog

hmailserver: Notes from the field

hmailserver is one of free open source mail servers running on Microsoft Windows operating system.

stegseek: Notes

StegCracker has been retired following the release of StegSeek, which will blast through the rockyou.txt wordlist within 1.9 second as opposed to StegCracker which takes ~5 hours.

Install Microsoft .NET Core SDK

.NET Core Software Development Kit (SDK) is a set of libraries and tools that allow developers to create .NET Core applications and libraries.