Skip to Content

Datetime Conversion Problem

Dear All,

I am using an add-on for Purchase Indent. In it I m using an EditText named Indent Date. I m to use current date in this EditText in exact this format (dd/MM/yy). I have tried all possibilities but the date is going into this format (2011-11-18) in database. I m to handle this. What can I do for this problem.? The date should be in database in (dd/MM/yy) format. Here is my code.

DateTime d = DateTime.Now;

((SAPbouiCOM.EditText)this.FormItem(enControlName.txtIndentDate).Specific).Value = d.ToString("yyyyMMdd");

Am i doing anything wrong ? Please Reply.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 19, 2011 at 04:28 AM

    Hi Ankit.......

    Please check this thread.

    how to convert date in ddmmyy format

    Hope this is helpful for you........



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 21, 2011 at 06:38 AM


    Please check in

    Administration - > general Setting--> Display tab

    Check which format you defined for date.



    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.