/ Published in: C#
                    
                                        
Como convertir tiempo a formato de 24 horas y viceversa.
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
DateTime d = DateTime.Now;
// 12 hour format
Response.Write(d.ToString("hh:mm") + " | " );
// 24 hour format
Response.Write(d.ToString("H:mm"));
URL: http://www.dotnetfunda.com/forums/thread638-how-to-convert-a-time-in-24-hours-format.aspx
Comments
 Subscribe to comments
                    Subscribe to comments
                
                