The 1C:Enterprise developers forum
How to get current date and time with precision to at least minutes? CurrentDate(), CurrentSessionDate() and CurrentUniversalDate() don't work as expected.
Hi Peter,this can be done as follows:
curDate = CurrentDate(); Message("" + Year(curDate)+ "." + Month(curDate) + "." + Day(curDate) + "." + Hour(curDate) + "." + Minute(curDate));
Looks like it's possible to save current date and time into string, but not into document attribute of date type.
In 1C, it is possible to store a Date type attribute in three types: 1. just a date, without time, 2. only time 3. date and time together. Take a look at the screenshot.But it is impossible to keep the time accurate to minutes without additional improvements.
Get it. Thanks!