Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | itnagarajYak Posting Veteran
 
 
                                        70 Posts | 
                                            
                                            |  Posted - 2012-09-10 : 03:04:09 
 |  
                                            | Date time is '2012-09-07 23:48:41.000'How to convert 12 hoiurs format in sql server?V.NAGARAJAN |  |  
                                    | prettPosting Yak  Master
 
 
                                    212 Posts | 
                                        
                                          |  Posted - 2012-09-11 : 02:16:05 
 |  
                                          | See following exampleDateTime d = DateTime.Now;// 12 hour formatResponse.Write(d.ToString("hh:mm") + " | " );// 24 hour formatResponse.Write(d.ToString("H:mm"));Hope this will help!! |  
                                          |  |  |  
                                    | visakh16Very Important crosS Applying yaK Herder
 
 
                                    52326 Posts | 
                                        
                                          |  Posted - 2012-09-11 : 11:25:24 
 |  
                                          | quote:SELECT CONVERT(varchar(25),datevalue,100)------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/Originally posted by itnagaraj
 Date time is '2012-09-07 23:48:41.000'How to convert 12 hoiurs format in sql server?V.NAGARAJAN
 
 |  
                                          |  |  |  
                                |  |  |  |