Tag: Date
Introduction In this example I am going to show you how to convert date 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 prior to Java 8 and 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…
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.
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…
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…
This tutorial will show you how can you calculate either 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 as to calculate the age of…