dear sir, i am getting date in 'yyyy-mm-dd' format when i use rs.getDate() method. i want it to be in 'dd/mm/yyyy' format. 'select current_timestamp' is giving 'dd/mm/yyyy' in psql. how to change to 'dd/mm/yyyy' format in java programme? thanks in advance. -Simon Moses. Bangalore India. ===== ************************** Visit My Home Page http://www.geocities.com/ks_moses updated: 22 February 2004. Simon Moses ************************** __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail
On Thu, 16 Sep 2004, Simon Moses wrote: > dear sir, > i am getting date in 'yyyy-mm-dd' format when i use > rs.getDate() method. i want it to be in 'dd/mm/yyyy' > format. This is the format that the Date class' toString() method uses, so this is an application thing, not a driver property. See java.text.SimpleDateFormat. Kris Jurka
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера