Today I will present how to Format Date with java.text.* package
Class java.text.SimpleDateFormat for example below
Date date=new Date();
System.out.println("No format :"+date);
java.text.SimpleDateFormat df= new java.text.SimpleDateFormat();
System.out.println("No pattern format :"+df.format(date));
df.applyPattern("dd/mm/yyyy");
System.out.println("dd/mm/yyyy format :"+df.format(date));
df.applyPattern("dd/mm/yyyy HH:mm:ss");
System.out.println("dd/mm/yyyy HH:mm:ss format :"+df.format(date));
Output for Java SimpleDateFormat
No format :Thu Apr 05 16:29:18 ICT 2012
No pattern format :5/4/2555, 16:29 น.
dd/mm/yyyy format :05/29/2555
dd/mm/yyyy HH:mm:ss format :05/29/2555 16:29:18
Content about Java ERP Solution for Reviews Best ERP Software for sale and Free Software with Java OpenSource for Free Download
Apache Open For Business Apache ofbiz architecture
Labels:
Business Intelligence(BI)
Open Source Software By : Apache Software Foundation
Stable release : 10.04.02 / April 15, 2012;
Programming language used : Java
Operating system: Cross-platform
Type: Business Process Open Source
License Apache: License 2.0
With Feature
Accounting (Agreements, Invoicing, Vendor Management, General Ledger)
Asset Maintenance
Catalogue and Product Management
Facility and Warehouse Management
Manufacturing
Order Processing
Inventory Management, automated stock replenishment etc.
Content management system (CMS)
Human resources (HR)
People and Group Management
Project Management
Sales Force Automation
Work Effort Management
Electronic point of sale (ePOS)
Electronic commerce (eCommerce)
Java tech using
JSP,J2EE,Groovy,BeanShell,JavaCC,Javolution,Apache Tomcat,Jetty
Stable release : 10.04.02 / April 15, 2012;
Programming language used : Java
Operating system: Cross-platform
Type: Business Process Open Source
License Apache: License 2.0
With Feature
Accounting (Agreements, Invoicing, Vendor Management, General Ledger)
Asset Maintenance
Catalogue and Product Management
Facility and Warehouse Management
Manufacturing
Order Processing
Inventory Management, automated stock replenishment etc.
Content management system (CMS)
Human resources (HR)
People and Group Management
Project Management
Sales Force Automation
Work Effort Management
Electronic point of sale (ePOS)
Electronic commerce (eCommerce)
Java tech using
JSP,J2EE,Groovy,BeanShell,JavaCC,Javolution,Apache Tomcat,Jetty
Subscribe to:
Posts (Atom)