Use this to get the current date in an acceptable CAML format:
DateTime dt = DateTime.Now; string currentDate = String.Format("{0:yyyy-MM-ddThh-mm-ssZ}", dt);
This request will provide you with user-created items from the newest to the oldest. I'm not sure how you will return only one node.
string lifestyleQuery = @"<Query><OrderBy><FieldRef Name='Date'></OrderBy><Where><And><Eq><FieldRef Name='Author' /><Value Type='Text'>" + _id + @"</Value></Eq><Lt><FieldRef Name='Date' /><Value Type='DateTime'>" + currentDate + @"</Value></Lt></Where></Query>";
You may need to work a bit with the query to get the correct column names (etc.), but I think this might be what you are asking?
baflgraf
source share