Categories

JAVA DATEBASE
Technology Network Community
Oracle Database
Fusion Middleware
Development Tools
Java
Desktop
Server & Storage Systems
Enterprise Management
Berkeley DB Family
Cloud Computing
Big Data
Business Intelligence
Architecture
Migration and Modernization
E-Business Suite
Siebel
PeopleSoft Enterprise
JD Edwards World
Industries
JD Edwards EnterpriseOne
User Productivity Kit Pro (UPK) and Tutor
Governance, Risk & Compliance (GRC)
Master Data Management (MDM)
Oracle CRM On Demand
On Demand: SaaS and Managed Applications
AutoVue Enterprise Visualization
Primavera
ATG
Agile PLM
Endeca Experience Management
Fusion Applications
Archived Forums

 



Tags

New To Java


How to set time zone in java.util.date function


Hi,       Any one tell me how to set time zone in java.util.date function.

Instances of java.util.Date store only the number of milliseconds since the 1st Jan 1970 UTC. UTC always always always.

If you want to display a date/time value using a specific timezone, see the SimpleDateFormat, DateFormat, and Format classes of the java.text package.

Why are you using Date in the first place anyway? It is mostly deprecated at this time

tjacobs01 wrote: Why are you using Date in the first place anyway? It is mostly deprecated at this time  It's hard not to use Date -- at least as a basic millisecond timestamp.


Related Links

problems compiling and running
Arrays and Classes
SOAP message over SMTP
Help with reading files!!
paint method not being called
Compile Error
hit detection logic
a question about List
basic dbt in floating point numbers
using ServerSocket for transporting objects
strip phone number input of other characters
Matrix Math feature?
eclipse vs. CVS
Overriding static functions
help with jtextfield and database
Help a java illiterate? Please?