.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> DateTime >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Display Date of Sunday from DateTime Data Type in VB.net

Posted By:Narayanan       Posted Date: May 10, 2013    Points: 40    Category: DateTime    URL: http://www.dotnetspark.com  

Today , we will discuss about the How to Display Date of Sunday from DateTime Data Type in VB.net
 

Here is code for Display  Date of Sunday from DateTime Data Type in VB.net.
Dim dte As DateTime = Now
        While dte< Now.AddYears(1)
            If dte.DayOfWeek = DayOfWeek.Sunday Then
                ComboBox1.Items.Add(dte.ToString("dd/MM/yyyy"))
                dte= dte.AddDays(6)
            End If
            dte= dte.AddDays(1)
        End While


     

Further Readings:

Responses

No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend