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.
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!
We're committed to your privacy. 1С uses the information you provide to us to contact you about our relevant content, products, and services. You may unsubscribe from these communications at any time. For more information, check out our Privacy Policy
Your request has been successfully sent.