Hi @all,
I need a datetime string in this format: "7:20 PM 7/26/2016"
I use the following code:
But in Label1.Text is "19:20 7/26/2016".
Why? What is my mistake.
Thanks.
I need a datetime string in this format: "7:20 PM 7/26/2016"
I use the following code:
B4X:
DateTime.TimeFormat = "h:mm a"
DateTime.DateFormat = "M/d/yyyy"
Label1.Text = DateTime.Time( DateTime.Now ) & " " & DateTime.Date( DateTime.Now )
But in Label1.Text is "19:20 7/26/2016".
Why? What is my mistake.
Thanks.