Archive for March, 2008

VB.Net overlap dates.

March 20, 2008

If you want to check overlap between dates you can use this function

Public Shared Function IsOverlapDate(ByVal D1Begin As Date, ByVal D1End As Date, ByVal D2Begin As Date, ByVal D2End As Date) As Boolean

If Date.Compare(D1Begin, D2End) <= 0 And Date.Compare(D1End, D2Begin) >= 0 Then

Return True

End If

Return False

End Function


Then try to test The function

Dim DBegin1 as New Date(2008,2,14)

Dim DEnd1 as New Date(2008,3,22)

Dim DBegin2 as New Date(2008,3,10)

Dim DEnd2 as New Date(2008,4,21)

Dim DBegin3 as New Date(2008,4,2)

Dim DEnd3 as New Date(2008,4,3)

Dim blnResult as Boolean

blnResult = IsOverlapDate(DBegin1,DEnd1,DBegin2,DEnd2) ‘ It is return true

blnResult = IsOverlapDate(DBegin3,DEnd3,DBegin2,DEnd2) ‘ It is return true

blnResult = IsOverlapDate(DBegin1,DEnd1,DBegin3,DEnd3) ‘ It is return false


Advertise from my country.

March 17, 2008


It isn’t about software developer but i like it.If you want to watch it click the picture.

.Net Interview Questions

March 5, 2008

ASP.NET DataGrid questions

ASP.NET Interview Questions

Hanselman ASP.NET Interview Questions

Advanced C# interview questions

Design Patterns resources.

March 5, 2008

These below links are articles about Design Patterns that i found.

You may familar with C++ for use this resource.

Some of demonstate how to use Design Patterns with .Net from msdn

This site is most reference about Design Patterns if you are .Net developer.
It was used to be #1 when you google “Design patterns”.
It describe all of 23 Gof patterns and has some coding sample.
And now it is include AJAX Design Patterns and alos WPF Design Patterns.

This is amount of articles explain about how to use Design Patterns.

And at wikipedia it is describe all about Design Patterns and some related links.

Display Hello World without semicolon

March 4, 2008

C# version

namespace WriteHelloWorld
class Program
static void Main(string[] args)

while (!”0″.Equals(System.Console.Title = “Hello world”).Equals(System.Console.ReadLine()))


C++ version
#include “stdio.h”

int main()
while( !printf( “Hello Worldn” ) )