Public/Get-GCDate.ps1

<#
.SYNOPSIS
    Retrieves the current server date and time.

.DESCRIPTION
    Returns the current date and time from the Genesys Cloud server.
    Uses the GET /api/v2/date endpoint.

.EXAMPLE
    Get-GCDate

.NOTES
    Genesys Cloud API: GET /api/v2/date
#>

function Get-GCDate {
    [CmdletBinding()]
    param()

    $endpoint = "date"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method GET
}