• thanks for your replies

    but i have done it by using variable of type DateTime? which allows null value.

    thanks alot