cancel
Showing results for 
Search instead for 
Did you mean: 

Difference between dates in VC

Former Member
0 Kudos

hi,

I need to find the difference between two dates in VC.

In VC we have a date function DSUB(d1,d2,unit). wat does this "unit" in DSUB function refer to. How to use this function?

thanks

raji

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Take a look here: http://help.sap.com/saphelp_nw70/helpdata/en/40/a228173435437394f54c56de571ca4/frameset.htm

There is description and example of how to use DSUB, and also Table A lists all the possible unit types.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

In Dsub(d1,d2,unit)

you have to pass following parameters.

d1 = date 1

d2 = date 2

unit = "D" or "M" or "Y"

Where as

D - Day

M - Month

Y - Year

Former Member
0 Kudos

thanks everybody.......

my problem is solved...

raji

former_member209575
Contributor
0 Kudos

H raji

DSUB - will returns the difference between two dates in specific format like"DD/MM/YYYY"

Regards

Pradeep P N