I am currently working on a Transformation component script. I want to format the input date columns to "MMddYYYY".
public override void Input0_ProcessInputRow(Input0Buffer Row)
{
/*
* Add your code here
*/
Row.SampleDate = Convert.ToDateTime(Row.SampleDate.ToString("MM/dd/yyyy"));
Row.TestDate = Convert.ToDateTime(Row.TestDate.ToString("MM/dd/yyyy"));
Row.ComponentsTestDate = Convert.ToDateTime(Row.ComponentsTestDate.ToString("MM/dd/yyyy"));
}
I am still getting a timestamp value once the scripts executes:
