Skip to content

Instantly share code, notes, and snippets.

@dfinke
Created May 15, 2015 22:29
Show Gist options
  • Select an option

  • Save dfinke/9b3a229cf9afa7e4f8ce to your computer and use it in GitHub Desktop.

Select an option

Save dfinke/9b3a229cf9afa7e4f8ce to your computer and use it in GitHub Desktop.
$startDate = (Get-Date).ToString('Mddyy') # 51515
$ca=$startDate.ToCharArray()
[array]::Reverse($ca)
$ofs=''
$startDate -eq "$ca" # prints True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment