There is a simple problem of Date Format Conversion. In java when we print date object its in this format "Tue Nov 13 18:34:35 PKT 2012" But I want this date to be shown in this format "2012-11-13 18:34:35" with in Date object. No string is required. Only Date object is needed in above format. Can any one help me.