16:03:19.0830000I store this in my db as time(7) , I want the time to appear in 4:03pm . Not like this. I use this method but failed, string is not a valid datetimestring timeFromFormat = "hh:mm tt";DateTime timeFrom = DateTime.ParseExact(tb_TimeFrom.Text, timeFromFormat, CultureInfo.InvariantCulture); 解决方案 这篇关于上午/下午出现的时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
07-27 22:45