How to insert current date from frontend to database RRS feed

  • Question


    Hello all,


    I read current date into a label using code 

    Thread.CurrentThread.CurrentCulture = new CultureInfo("en-GB");

    label1.Text = Convert.ToString(DateTime.Now.ToString());

    Now I am trying  to insert current date into table having column of datatype 'date' .

    But it is raising error "Invalid Month" ie I have to insert month in 'mon' format (Eg:'dec','nov') because date format in oracle is dd-mon-yyyy.

    How can I convert current date into above format and insert into database


    Help me,


    Thanking You,







    Wednesday, December 19, 2007 4:36 PM


All replies