C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !




How to compare two different times using VB.NET


Posted Date: 01 May 2008    Resource Type: Code Snippets    Category: Date & Time

Posted By: Asha Mathews       Member Level: Gold
Rating:     Points: 10



The following sample function can be used to compare time
Function comTime()


Dim t1 As Integer = DateTime.Now.TimeOfDay.Milliseconds

Dim t2 As Integer = DateTime.Now.AddHours(1).Millisecond

If (t1 > t2) Then

MessageBox.Show("t1>t2")

ElseIf (t1 = t2) Then

MessageBox.Show("t1=t2")

Else

MessageBox.Show("t2>t1")

End If

End Function




Responses


No responses found. Be the first to respond and make money from revenue sharing program.

Feedbacks      
Popular Tags   What are tags ?   Search Tags  
Datepiker  .  Datepaker  .  

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: Comparing and Adding Dates
Previous Resource: How to disable and color a specific date Range on calendar control
Return to Discussion Resource Index
Post New Resource
Category: Date & Time


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

doors in nj

Contact Us    Privacy Policy    Terms Of Use