You could use STR(YEAR(AddDate),4) instead.
>>LTRIM(STR(YEAR(AddDate)))
>>works for me in VFP and SQL. You don't need rtrim().
>
>Ok, but there is still the issue of extra spaces. As I need to use that field for comparism down under, it would have been nice to trim it entirely.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only