How to format the Date

How to format the Date

If the $dt parameter contains the DateTime structure and you want to format the date as "year-month-day", use the DateTime.ToString method like this:


1
$dt.ToString("yyyy-MM-dd")

    Book a Presales Call

    Need Help?
    Evaluating COZYROC? --> Success Call
    Customers --> Submit a Ticket