Skip to Content
avatar image
Former Member

Difference between dates in VC

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 16, 2007 at 11:52 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 11:53 AM

    H raji

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

    Regards

    Pradeep P N

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 16, 2007 at 12:17 PM

    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

    Add comment
    10|10000 characters needed characters exceeded