Month: November 2021

SimpleDateFormat (Parse Date)

Date conversions are very common scenarios in any application., Java Provides SimpleDateFormat class for String to Date, Date to String conversions. The below example shows How String format can be converted to Date Format. How to find difference between 2 Dates. Code:

Output

Tranform XML using XSLT

To transform XML to another XML/HTML/TEXT format using XSLT., we need the following files. Input XML (.xml) XSLT file which contains the transformation script. (.xsl) The below XML (input.xml) input file, can be transformed into a html with the xsl (trans.xsl) file. Sample Input XML:File: input.xml

In the above XML file, we could see …

Tranform XML using XSLT Read More »