YearFromDate() Function in Transformer Stage in DataStage

Returns the year from the given date.
    Input: date
    Output: year (int16)
    Examples. If mylink.mydate contains the date 2013-08-21, then the two following functions are equivalent, and return the value 2013.

    YearFromDate(“2013-08-21”)
    YearFromDate(mylink.mydate)

You can watch video tutorial of this function here:

Comments

comments

Leave a Reply