Skip to content
  • Home
  • About Me
  • Contact
Dowst.Dev
Dowst.Dev
PowerShell Weekly
Dowst.Dev
Dowst.Dev
PowerShell Weekly
  • Home
  • About Me
  • Contact
DateTimeGeneral

DateTime to ShortTime

Get-Date $date -Format t
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to Round Trip

Get-Date $date -Format o
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to Month Day

Get-Date $date -Format M
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to Full DateTime

Get-Date $date -Format F
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to LongDate ShortTime

Get-Date $date -Format f
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to LongDate

Get-Date $date -Format D
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to ShortDate

Get-Date $date -Format d
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to ISO8601

$offset = ([System.TimeZoneInfo]::Local).BaseUtcOffset.ToString() $offset = $offset.Substring(0,$offset.LastIndexOf(':')) $date.ToString("yyyy-MM-ddTHH:mm:ss.fff") + $offset
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to ISO8601UTC

$date.ToUniversalTime().ToString("yyyy-MM-ddTHH:mm:ss.fffZ")
Matthew DowstMar 27, 2019
Read More
DateTimeGeneral

DateTime to SQL

$date.ToString("yyyy-MM-dd HH:mm:ss.fff")
Matthew DowstMar 27, 2019
Read More
1415161718


My name is Matthew Dowst and I am a father, author, blogger, Microsoft MVP in PowerShell and Azure Hybrid & Migration. And I am an enthusiast of all things PowerShell and DevOps.


Practical Automation with PowerShell
Now available on Amazon and all major book retailers

Categories

  • Active Directory
    • Groups
    • User
  • Automation
  • Azure
    • Intune
  • Collaboration
  • General
    • Array
    • Conditional Statements
    • DateTime
    • Forms/Prompts
    • Fun
    • Math
    • Tools
  • Platforms
    • SharePoint
  • PoshBytes
  • Security
    • Credentials
    • Remoting
  • Storage
    • Files
    • Folders
    • Shares
  • Strings
    • Combine Strings
    • Convert to String
    • Create String
    • Numbers
    • Regex
    • Replace String
    • Search String
    • Split String
    • String Casing
  • Systems
    • Networking
    • Performance
    • Registry
  • Uncategorized

Tags

array azure AzureAutomation conditions credential Credentials date-formats datetime dns else epoch Files Folders form friday-fun guid hardware if int ip-address join logic logs math password performance Permissions port prompt regex registry remote replace rounding search security Shares split string substring time-zones unix User webrequest wmi

Follow Me

  • About Me
  • Contact Me
  • PowerShell Weekly Archive
Copyright © 2026 - Yuki Westa Blog Theme By WP Moose