csharp get current date

Code Example - csharp get current date

                
                        DateTime now = DateTime.Now;
                    
                
 

csharp get date

                        
                                DateTime.Now.ToString("dd/MM/yyyy");
                            
                        
 

csharp get today's date

                        
                                DateTime today = DateTime.Today;
                            
                        
 

csharp datetime current

                        
                                DateTime now = DateTime.Now;
string strDate = now.ToString("YYYY-MM-dd");
                            
                        
 

how to get the today date in csharp

                        
                                DateTime today = DateTime.Now;