Null Values in a DateTime Field

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #1

    Null Values in a DateTime Field

    Hi,

    How can I insert Null value to a DateTime field.
    Is there soem thing like
    DateTime dt=......someth ing
  • Shashi Sadasivan
    Recognized Expert Top Contributor
    • Aug 2007
    • 1435

    #2
    Originally posted by mzmishra
    Hi,

    How can I insert Null value to a DateTime field.
    Is there soem thing like
    DateTime dt=......someth ing
    Code:
    DateTime dt = null;
    Is that what you are looking for, or is it a SQL query?

    Comment

    • mzmishra
      Recognized Expert Contributor
      • Aug 2007
      • 390

      #3
      Thanks for your reply.
      Actually it is a sql query.
      And I have got a solution ,created one sp and pass this as DBNull.Value

      Comment

      Working...