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!
A confirmation e-mail has been sent to the e-mail address you provided .
Click the link in the e-mail to confirm and activate the subscription.
© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors to our website.
Get our brochures now! They are packed with all the info you need on 1C:Enterprise, a comprehensive technological platform with a wide range of built-in and separate tools and services and a system of off-the-shelf solutions powered by this platform. Plus, data on customer projects, including stats on their size and the effect of automation. Just leave your email address to download!
Your request has been successfully sent.