The 1C:Enterprise developers forum
How to make a document to be the last for the current day? There are some documents with 23:59:59 time already.
You will have to make it the only one having this time. Others must have time less than 23:59:59
Use DocumentObject.SetTime(AutoTimeMode.Last)