06-10-2015 03:49 AM
I have a table that contains a date column, with the following details :
Name : BILL_DATE
Type : Date
Length : 8
Format : DATETIME20.
Informat : DATETIME20.
Label : BILL_DATE
I'm trying to retrieve the month value of each row, so I'm using the computed column advanced expression with the following statement ; month(t1.BILL_DATE)
The results are Null, any ideas why this might me happening?
while on the other hand the statement datepart(t1.BILL_DATE) is returning normal values!
Need further help from the community? Please ask a new question.