简体   繁体   中英

Date time Filed formate in my Asp.net grid

I am using this formate to display the date time in the grid. My problem is I am not getting the Exact HH:MM from the database. Database showing 11:11 but on my grid it showing 11:03..

Here is the database value : 2013-03-29 11:11:17.570

.Format("{0:MM/dd/yyyy HH:MM  tt}")

Can Any body help me out why I am not getting this Exact HH:MM in my grid?

Thanks

hello please use this format

"{0:MM/dd/yyyy HH:mm tt}"

您使用月份代替分钟应该是小mm

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM