To get the current system date and time stamp use below snippet code
import oracle.jbo.domain.Date;
public Date getCurrentDomainDate(){
return new Date(new java.sql.Timestamp(System.currentTimeMillis()));
}
Output format
“2016-09-14 14:47:31.0”.
No comments:
Post a Comment