Compare two Dates

Understanding basics of 1C:Enterprise platform. To start working with 1C:Enterprise platform visit Getting started page

#1
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

There are two dates: 07/25/2010 and 12/30/2011. I need to find out what is the difference between those dates in months.

 
#2
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 6, 2011
Company:

12 * (Year(Date2) - Year(Date1)) + Month(Date2) - Month(Date1)

Also in query you can use DATEDIFF(Date1, Date2, MONTH)

 
#3
People who like this:0Yes/0No
Active user
Rating: 6
Joined: Sep 16, 2011
Company: TLG Integration

Super, Evgeny! Thank you!

 
#4
People who like this:0Yes/0No
Active user
Rating: 4
Joined: Sep 16, 2011
Company: Oksley Shipping

Yes, that helped, thank you!

 
#5
People who like this:0Yes/0No
Just came
Rating: 1
Joined: Dec 6, 2011
Company:

You are welcome )

 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks 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.