Changing string format from MM DD,YYYY to DD/MM/YYYY and time

  1. I have a string format of oct 16, 2019. I want to change the string into 16/10/2019.

  2. I have time of 10: 00 PM and I want it to show 22:00.

How can I do that?

Here it is. Check the attachment. Main.xaml (5.9 KB)

1 Like

Hi @Emily_Yip

Please try this
varDate = CDate(varDate).ToString(“dd/MM/yyyy”)
varTime = CDate(varTime).ToString(“HH:mm”)


ConvertDatTime.xaml (5.0 KB)
I hope it would be helpful :blush:



Thanks … It solve my problem

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.