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  | 
                             
                            
                                    | 
                                         salmonraju 
                                        Yak Posting Veteran 
                                         
                                        
                                        54 Posts  | 
                                        
                                        
                                            
                                            
                                             Posted - 2007-04-19 : 05:42:00
                                            
  | 
                                             
                                            
                                            | hi i am using .net 1.1 versioni want to validate date entered in textbox using the regular expression ,i find many on internet but all are giving error message | 
                                             
                                         
                                     | 
                             
       
                            
                       
                          
                            
                                    | 
                                     SwePeso 
                                    Patron Saint of Lost Yaks 
                                     
                                    
                                    30421 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2007-04-19 : 05:53:38
                                          
  | 
                                         
                                        
                                          | 1) Try built-in ISDATE first.2) Try LIKE. IF txtDate.Text LIKE "####-##-##" THEN ...Peter LarssonHelsingborg, Sweden  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                       
                          
                            
                                    | 
                                     Kristen 
                                    Test 
                                     
                                    
                                    22859 Posts  | 
                                    
                                      
                                        
                                          
                                           
                                            Posted - 2007-04-19 : 07:17:56
                                          
  | 
                                         
                                        
                                          | "i want to validate date entered in textbox using the regular expression"I don't think you can.  I can't think of a way to get a RegEx to handle 28-days in Feb for a leap year only, for example.You'd be better off with a date-validation function written in Javascript (or something Server-side if you like).We use http://groups.yahoo.com/group/validation by Matthew frankKristen  | 
                                         
                                        
                                            | 
                                         
                                       
                                     | 
                                   
                            
                            
                                | 
                                    
                                      
                                     
                                    
                                 | 
                             
                         
                     | 
                 
             
         |