Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Date or Timestamp?
Joined: Aug 05, 2007
Nov 16, 2009 15:19:22
I have a table column that stores Date in default format 'dd-MON-yy'
to retrieve this column but I need it to display hour and minute and am/pm for my
I am wondering if I should change the column to Timestamp instead of Date, does Timestamp record more info down to hour and minute compare to Date type?
Thanks in advance
Joined: May 26, 2003
Nov 16, 2009 15:51:21
You are correct. Timestamp stores both date and time in a database. Date stores just date.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
It is sorta covered in the
JavaRanch Style Guide
subject: Date or Timestamp?
How to display date in Daylight Savings
hours and minutes set/get sql timestamp
ORA-01861: literal does not match format string
Passing date and time using Timestamp.
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013