Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I need Date with only yyyy-mm-dd format, because DB2 table having 10 precision of date column.
Date date = new Date(); String modifiedDate= new SimpleDateFormat("yyyy-MM-dd").format(date);
This will do.