Hi
In below data i want to display only Hours & minutes i.e 15:15 from 21/01/2023 15:15:00
ltrlSessionEndTime_0.Text = Result.SessionEndTime.ToString();
Thanks
Hi
In below data i want to display only Hours & minutes i.e 15:15 from 21/01/2023 15:15:00
ltrlSessionEndTime_0.Text = Result.SessionEndTime.ToString();
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sachin SinghPosted Jan 18, 2023, 5:59 AM
test this
Jitendra GautamPosted Jan 24, 2023, 10:17 AM
Hi,
you can use this if you want to show AM/PM also.
ltrlSessionEndTime_0.Text = Result.SessionEndTime.ToString("HH:mm tt");
Pasang TamangPosted Jan 18, 2023, 5:53 AM
Hi,
You can do string format. Check below code example.
If you want to use 12 hours format then use hh:mm.
Regards,
Pasang