Johnny2pints
asked on
Sybase Date Functions
Does Sybase have year() and month() functions for DATETIME type?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
1> select getdate()
2> go
--------------------------
Mar 29 2003 11:49AM
(1 row affected)
1> select datepart(year, getdate())
2> go
-----------
2003
(1 row affected)