@inrupt/solid-client
    Preparing search index...

    Function getDatetime

    • Returns the datetime value of the specified Property from a [[Thing]]. If the Property is not present or its value is not of type datetime, returns null. If the Property has multiple datetime values, returns one of its values.

      Parameters

      • thing: Thing

        The [[Thing]] to read a datetime value from.

      • property: string | Url

        The Property whose datetime value to return.

      Returns null | Date

      A datetime value for the given Property if present, or null if the Property is not present or the value is not of type datetime.