ZonedDateTime.Format(DateTimeFormatter) Method

Definition

Formats this date-time using the specified formatter.

[Android.Runtime.Register("format", "(Ljava/time/format/DateTimeFormatter;)Ljava/lang/String;", "", ApiSince=26)]
public string? Format(Java.Time.Format.DateTimeFormatter? formatter);
[<Android.Runtime.Register("format", "(Ljava/time/format/DateTimeFormatter;)Ljava/lang/String;", "", ApiSince=26)>]
abstract member Format : Java.Time.Format.DateTimeFormatter -> string
override this.Format : Java.Time.Format.DateTimeFormatter -> string

Parameters

formatter
DateTimeFormatter

the formatter to use, not null

Returns

the formatted date-time string, not null

Implements

Attributes

Remarks

Formats this date-time using the specified formatter. This date-time will be passed to the formatter to produce a string.

Java reference for java.time.ZonedDateTime.format.

Applies to