Okay here’s another baffling API bug: If you parse a date using SPUtility.ParseDate(web, “11/29/2009 13:37:12″, SPDateFormat.DateTime, false) it will return you a date object without parsing the time! Remove the seconds SPUtility.ParseDate(web, “11/29/2009 13:37″, SPDateFormat.DateTime, false) and we are good to go. Full program listing of bug follows: The above code assumes you have US [...]
Posts Tagged ‘SPUtility’
SPUtility.DateParse !♥ seconds: SPUtility.DateParse removes the time component if you parse a date that incudes seconds!??!
Posted in sharepoint, tagged bug, sharepoint, SPUtility, SPUtility.DateParse on November 30, 2009 | 1 Comment »