Convert date to string with specific format
[datetime]$date = Get-Date $date.ToString('yyyy-MM-dd')
Convert number to string with leading zeroes
[int]$int = 7 $int.ToString('000')
Convert number to string with certain number of decimals
[double]$pi = 22/7 $pi.ToString('0.00')