Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Help with trim

Hi guys

I am trying to trim a date field so i have just the year. I have searched the net to no avail. Ihave tried this but no luck, Please could someone help ?

Payment_A_Date,Left(Payment_A_Date,4)    as myYear,

trim.jpg

1 Solution

Accepted Solutions
roger_stone
Creator III
Creator III

In the script:

YEAR(Payment_A_Date) AS myYear

View solution in original post

3 Replies
roger_stone
Creator III
Creator III

In the script:

YEAR(Payment_A_Date) AS myYear

sunny_talwar

Try this:

Year(Date#(Left(Payment_A_Date, 4), 'YYYY')) as myYear

buzzy996
Master II
Master II

year(urfieldname)