Log Summary WebPart Date Calculation Problem

xiaoxiao2021-03-06  63

Log Summary WebPart Date Calculation Problem

Since September, I found that I have written "new" on my log summary, I know, I must have a problem with my algorithm, because I use a clever time in comparing the log publishing date and the current date. The method is to convert the date into an integer and then subtract.

I think the correct algorithm should be the correct date and the current date of the date and the current date.

Then the log publish date is stored in a string format, how to translate this string into a date type. I didn't find a direct function, so I would like to first split strings as the date of the year, and then use the method of assigning the value of the DateTime.

DateTime DT = New DateTime (2004, 9, 20, 0, 0, 0);

转载请注明原文地址:https://www.9cbs.com/read-111053.html

New Post(0)