how to initialize a dateTime variable

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Feb 9, 2016
Company: CTC

Hi,

we can use date(year, month, day) to initialize a specific date.
how can I initialize a datetime?
I tried DateTime(year, month, day, hour, min, sec) in the code but it shows error.
is there a way to get or initialize or compare a time only or a datetime?

thanks

 
#2
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Feb 9, 2016
Company: CTC

got it

Date(2020,2,20,13,0,0);

 
Subscribe
Be the first to know tips & trick on business application development!

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.