Hi Felix,
Yes it is running fine but only small information is needed, is creation date and modification date allways starts with "D:" for example "D:20080430171853Z"
here the issue is some times we are getting Z and some not
So how you're converting it into standard date format. I am following the below procedure Please let me know whether any simple way is there
strCreationDate = pdfFile.CreationDate.ToString();
iYear = Convert.ToInt32(strCreationDate.Substring(2, 4));
iMonth = Convert.ToInt32(strCreationDate.Substring(6, 2));
iDate = Convert.ToInt32(strCreationDate.Substring(8, 2));
iHour = Convert.ToInt32(strCreationDate.Substring(10, 2));
iMin = Convert.ToInt32(strCreationDate.Substring(12, 2));
iSec = Convert.ToInt32(strCreationDate.Substring(14, 2));
if (strCreationDate.Length == 16)
{
}
if (strCreationDate.Length > 16)
{
if (strCreationDate.Substring(16, 1).Equals("Z") || strCreationDate.Substring(16, 0) == null)
{
}
else
{
iChgHour = Convert.ToInt32(strCreationDate.Substring(17, 2));
iChgMin = Convert.ToInt32(strCreationDate.Substring(20, 2));
if (strCreationDate.Substring(16, 1).Equals("+"))
{
iHour = iHour - iChgHour;
iMin = iMin - iChgMin;
}
if (strCreationDate.Substring(16, 1).Equals("-"))
{
iHour = iHour + iChgHour;
iMin = iMin + iChgMin;
}
}
}
DateTime createDate = new DateTime(iYear, iMonth, iDate, iHour, iMin, iSec);
String strCreatedDate = Convert.ToString(createDate.ToString(strDateFormat));