Showing posts with label timestamp. Show all posts
Showing posts with label timestamp. Show all posts

Thursday, March 12, 2015

Set defautt Timestamp to an attribute ADF

import java.sql.Timestamp;

         setCreationDate(new Timestamp(System.currentTimeMillis()));
         setLastUpdateDate(new Timestamp( System.currentTimeMillis()));

If you want to set the time in  EO attribute, use the expression adf.CurrentDateTime (for timestamp) or adf.CurrentDate (for date)

http://abakalidis.blogspot.com/2007/02/oracle-adf-accessing-current-date-and.html
http://adfgouravtkiet.blogspot.com/2012/11/how-to-set-default-values-for-entity.html

Tuesday, September 24, 2013

Timestamp datatype in View Object gets the date and timestamp ADF

Normal Date type for an attribute in View Object always shows hours as 00:00:00 though you have mentioned yyyy-MM-dd 'at' hh:mm:ss a in the control hints of the Attribute in VO

a is for AM/PM
hh is for 12 hours / HH is for 24 hours time