.NET Client Documentation
5.2.2
Search Results for

    Show / Hide Table of Contents

    TryParse Method

    TryParse(string, out HOffsetDateTime)

    Converts the string representation of a date and time with timezone to its HOffsetDateTime equivalent. A return value indicates whether the operation succeeded.

    Declaration
    public static bool TryParse(string s, out HOffsetDateTime offsetDateTime)
    Parameters
    string s

    A string containing a date and time with timezone to convert.

    HOffsetDateTime offsetDateTime

    When this method returns, contains the HOffsetDateTime equivalent to the date and time with timezone contained in s, if the conversion succeeded, or the default value if the conversion failed.

    Returns
    bool

    true if s was converted successfully; otherwise, false.

    In This Article
    Back to top Copyright © 2010-2023 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.