when get and show it. The value is “11/23/2017 0:00”.
Now, i want to convert it to format “MMdd”.
I tried use CDate(DateTime_v).ToString(“MMdd”) or DateTime.ParseExact(BuyDate_v.ToString, “MMdd”, enUS, DateTimeStyles.None).
But it is not correct. Please help to check.
So i think value BuyDate_v.ToString when i got was not correct.
I message box again and the value right of BuyDate_v.ToString is “11/23/2017 00:00:00” .
So, how can i change “MM/dd/yyyy h:ss” to correct?