Report question

Question: How do I set a full date & time sql using java, and not just the date?