0
How to get Year from Timestamp in java
Timestamp t = new Timestamp ();
2 ответов
+ 1
Thanks, but it is deprecated I need add 1900 with reault. It is not useful.
- 1
You might get it with:
t.getYear()
Timestamp according to documentation is a subclass of Date, which is depreciated so hard to tell if it will work or not.