I need to get today's date and insert into sql table.
Date d = new Date(); long today = now.getTime();
when I insert this value into sql table hour:min:sec is also inserted. please give me suggestions to get today's date in long value or in timestamp value without hr:min:sec attached to it.