We can convert current date to oracle.jbo.domain.Date using java.sql.Date and java.util.Date.
For this we have to take current date in a String variable.
Now change this String date1 to java.util.Date.
As we cannot change date1 to oracle.jbo.domain.Date directly because oracle.jbo.domain.Date format is "YYYY/MM/DD" but this format is not supported in java.util.Date.So, we need to change String date1 to java.util.Date.
We cannot change java.util.Date to oracle.jbo.domain.Date.
So,we need to change java.util.Date to java.sql.Date and then java.sql.Date to oracle.jbo.domain.Date.
For this we have to take current date in a String variable.
Now change this String date1 to java.util.Date.
As we cannot change date1 to oracle.jbo.domain.Date directly because oracle.jbo.domain.Date format is "YYYY/MM/DD" but this format is not supported in java.util.Date.So, we need to change String date1 to java.util.Date.
We cannot change java.util.Date to oracle.jbo.domain.Date.
So,we need to change java.util.Date to java.sql.Date and then java.sql.Date to oracle.jbo.domain.Date.
No comments:
Post a Comment