How to keep the date format and only change the month to MM, day to DD, hour to HH?

  • Thread starter Thread starter gaxjyxq
  • Start date Start date
G

gaxjyxq

Guest
I converted the filetime to local date, but I need to change the month to "MM", day to "dd" and hour to "HH" because I will sort the items. I known to use the .Tostring(yyyy-MM-dd HH:mm:ss) format the date string, but I do not know the local time format on client.

For example the local time format on client is "YYYY/M/D hh:mm:ss", how to change my string to "yyyy/MM/dd HH:mm:ss", I cannot use the .Tostring("yyyy/MM/dd HH:mm:ss") because I do not know client's date format.

Continue reading...
 
Back
Top