Convert Date From One Format To Another Format In Java

Date Time Formatting In this example I am going to show you how to convert date or date & time both from one format to another format in Java programming language. There are many situations where you need to convert date format in your Java based application from one format to another format. You can use Java version prior to…

Check a Given Date is Past, Today or Future’s Date in Java

Past, Present Or Future’s Date In this example I am going to show you how to check if an input date is past date or today’s date or future date. For this example you should use at least Java version 8. Java 8 or higher version provides thread safe version of date time API classes that can be used safely…

Add Or Subtract Days Weeks Months Years On Java 8 Date

Java 8 Date In this tutorial I am going to show you how to add days, weeks, months, years to a particular date in Java 8 or later. Similarly I will also show how to substract days, weeks, months, years from a particular date. The date is actually LocalDate API in Java 8 or later. The one of the important…

What Is The Use Of @Temporal Annotation In JPA

@Temporal Annotation In this tutorial I am going to tell you what is the use of @Temporal annotation in JPA (Java Persistence API). @Temporal is a JPA annotation and generally specified only for persistent fields or properties of type java.util.Date and java.util.Calendar. Generally you can use @Temporal annotation on the date or calendar field in entity classes while you are mapping…

Calculate Future Or Past Date In Java

Introduction This tutorial will show you how you can calculate future or past date in Java. The calculation is done on future date from a particular date to “plus a number of given days” or past date from a particular date to “minus a number of given days”. Future or past date calculation may be required for various purposes such…

Java 8 Date and Time API

Introduction Here I am going to discuss about the Java 8 or later version’s new date and time API. The date time package, java.time, was introduced in the Java SE 8 release, which provides a comprehensive model for date and time. The new date and time API offers greatly improved safety and functionalities for developers.

Dynamically Generate Months In PHP

Introduction Sometimes you may need to select month value from drop-down or select option box and for that you hardcode the month values in HTML option fields. It is possible to dynamically generate month values using PHP and you can use those generated month values in HTML select option tag. This way you do not need to hardcode the month values and…

Dynamically Generate Years In PHP

Introduction Here in this example I am going to show you how to generate years in PHP language. Sometimes you may need to select year value from dropdown or select/option field and for that you hardcode the year values in HTML option fields. It may be cumbersome at the point when you want to add a new year value to the option…

Create Date in Excel File using Apache POI in Java

Introduction In this example I will show you how to create date and put it in an excel file using Apache POI in Java language. I will show you how to build the project using both maven and gradle build tools. I will also show you how to create date using Java 8 or prior to Java 8 on java.util.Date…

HighChart using AJAX, Codeigniter

It is known that high chart basically displays different statistical data on different chart types such as column chart, bar chart, line chart, pie chart etc. You can have a look at the URL http://www.highcharts.com/ for more information. You can integrate highchart with any server side tehnology but here I will show you how to integrate highchart with Codeigniter framework….