RelativeDateTimeFormatter.CombineDateAndTime(String, String) Method

Definition

Combines a relative date string and a time string in this object's locale.

[Android.Runtime.Register("combineDateAndTime", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)]
public string? CombineDateAndTime (string? relativeDateString, string? timeString);
[<Android.Runtime.Register("combineDateAndTime", "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;", "", ApiSince=24)>]
member this.CombineDateAndTime : string * string -> string

Parameters

relativeDateString
String

the relative date e.g 'yesterday'

timeString
String

the time e.g '3:45'

Returns

the date and time concatenated according to the default calendar in this locale e.g 'yesterday, 3:45'

Attributes

Remarks

Combines a relative date string and a time string in this object's locale. This is done with the same date-time separator used for the default calendar in this locale.

Java documentation for android.icu.text.RelativeDateTimeFormatter.combineDateAndTime(java.lang.String, java.lang.String).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to