Skip to content

Tag Archives: Java-text package

The setMonths(String[] newMonth) Method of DateFormatSymbols class in Java is used to set the names of the months of the calendar in string format into… Read More
The getAmPmStrings() Method of DateFormatSymbols class in Java is used to get the AM’s and PM’s string format. For eg., “AM” and “PM”. Syntax: public… Read More
The getWeekdays() Method of DateFormatSymbols class in Java is used to get the name of the weekdays of the calendar in a string format. Syntax:… Read More
The getAvailableLocales() method of DateFormatSymbols class in Java is used to return an array of all the locales available at the localized DateFormatSymbols instances of… Read More
The getShortWeekdays() Method of DateFormatSymbols class in Java is used to get the short names of the weekdays of the calendar in a string format.… Read More
The getMonths() Method of DateFormatSymbols class in Java is used to get the name of the months of the calendar in a string format. Syntax:… Read More
Given a date in GregorianCalendar format change it into SimpleDateFormat.Examples:  Input: Sat Apr 28 13:36:37 UTC 2018 Output: 28-Apr-2018 Input: Wed Apr 03 20:49:45 IST… Read More
The setMaximumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the maximum number of digits allowed in… Read More
The setCurrency() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the Currency for this DecimalFormat instance which… Read More
The setMinimumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set the minimum number of digits allowed in… Read More
The getMaximumFractionDigits() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to get the maximum number of digits allowed in… Read More
The applyPattern() Method of DecimalFormat class in Java is used to apply a given string pattern to this Decimal format. This pattern can be set… Read More
The setDecimalFormatSymbols() method is a built-in method of the java.text.DecimalFomrat class in Java and is used to set new DecimalFormatSymbols for this DecimalFormat instance. This… Read More
The applyLocalizedPattern() Method of DecimalFormat class in Java is used to apply a localized string pattern to this Decimal format. This pattern can be set… Read More
The setMaximumFractionDigits() method is a built-in method of the java.text.NumberFormat which sets the maximum number of digits allowed in the fraction portion of a number.If… Read More