locked
How to get the current Date..? RRS feed

  • Question

  • Hi There,

       I am very new to c#.
    Can Any one tell me how can I write this code in C#.

    I have a database table field named as Date.
     If (date<CurrentDate)
       Update
     else
     ....

    How Can I get this one...
    I am writing like

    if (Convert.ToDateTime(ds.Tables[0].Rows[0]["Date"]) == DateTime.NowDate)

    It is not working Properly..

      is there any other way I can write it..?

    Plz help me...Its very Urgent...!!
    Unknown
    Tuesday, December 23, 2008 3:57 PM

Answers

All replies