how to set current date in timestamp attribute in Java Plain API
One answer
A timestamp Attribute, if you look at the API e.g. IWorkItem.setDueDate() id of type java.sql.Timestamp.
You can use the PDE to look at that type, you can search in search engines how it is used. It boils down to
where Date is java.util.Date. There are a few constructors not deprecated, that you can use.
You can use the PDE to look at that type, you can search in search engines how it is used. It boils down to
Timestamp ts=new Timestamp(new Date().getTime()); target.setDueDate(ts);
where Date is java.util.Date. There are a few constructors not deprecated, that you can use.