• vitolini
  • NEWBIE
  • 0 Points
  • Member since 2007

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies
Hi All-
   I'm a newbie and have created a couple of custom objects, and am creating a C# web form that the user completes to post data to the custom object.  All works fine except for the date and quantity field.  The date field is defined as a date in the custom object and the quantity field is defined as a number 3, 0.  I'm sure this is a formatting thing, but I've tired all kinds of date formatting and spent the last hour reading posts on this board without success.  Anyone that can point me in the right direction?
 
Code I'm using for the date field is:

customObjectName.Submitted_Date__c = DateTime.Today.Date;

And quantity field is:

customObjectName.Lost_Qty__c = int.Parse(txtLostQty.Text);

Thanks!