Write a program in Java to input a string to display these patterns. Assume the string is " CALENDAR "
Answers
Answered by
1
Answer:
Explanation:
String pattern = " y y y y -MM-d d";
Simple Date Format simple Date Format = new Simple Date Format(pattern);
The pattern parameter passed to the Simple Date Format constructor is the pattern to use for parsing and formatting of dates. The pattern syntax is covered later in this text. The pattern is just a regular Java String.
Similar questions