Powershell - Time Format

Easy function to return the Date/Time format you preferred:


Function getTime
{
     date - Format 'dd-MM-yyyy HH:mm:ss'
}