Assignments via PDS

T

teeBull

When I retrieve all assignments for the currently logged-in user (via
PDS,) I can see when an assignment started and when it is suppose to
end.

Unfortunately, both come back in YYYYMMDDHHMMSS format and I can find
nothing about an easy conversion into a DateTime object. I'm about to
write my own code to do so but would appreciate if anyone would point
out standard .NET tools for doing so.

Thanks
 
J

Jerry

Dear

We had the same problem in the past but solved the problem by writing
custom code. So Here is the code

string strProjectStartDate =
dsProjectData.Tables[2].Rows[0]["StartDate"].ToString();
strProjectStartDate = strProjectStartDate.Substring(4, 2) + "/" +
strProjectStartDate.Substring(6, 2) + "/" +
strProjectStartDate.Substring(0, 4);

I am sure this helps

Regards

Jerry
 
J

Jerry

Dear

We had the same problem in the past but solved the problem by writing
custom code. So Here is the code

string strProjectStartDate =
dsProjectData.Tables[2].Rows[0]["StartDate"].ToString();
strProjectStartDate = strProjectStartDate.Substring(4, 2) + "/" +
strProjectStartDate.Substring(6, 2) + "/" +
strProjectStartDate.Substring(0, 4);

I am sure this helps

Regards

Jerry
 
Top