Compare commits
No commits in common. "51e370ad3361c324d6f2c81593a10c9ed721d3a3" and "7e507fa95cc296a7c0923172d020e0200b249c58" have entirely different histories.
51e370ad33
...
7e507fa95c
2
.idea/misc.xml
generated
2
.idea/misc.xml
generated
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_16" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" default="true" project-jdk-name="17" project-jdk-type="JavaSDK">
|
||||
<output url="file://$PROJECT_DIR$/out" />
|
||||
</component>
|
||||
</project>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -19,7 +19,7 @@ public class GeneralMethods {
|
||||
* @author Madeleine Vigier
|
||||
*/
|
||||
public static String getDayNumberNew(String dateString) {
|
||||
//https://stackoverflow.com/questions/8746084/string-to-localdate
|
||||
//https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd.MM.yyyy");
|
||||
formatter = formatter.withLocale(Locale.GERMANY); // Locale specifies human language for translating, and cultural norms for lowercase/uppercase and abbreviations and such. Example: Locale.US or Locale.CANADA_FRENCH
|
||||
LocalDate date = LocalDate.parse(dateString, formatter);
|
||||
@ -32,7 +32,7 @@ public class GeneralMethods {
|
||||
* The method getDayName() gets the weekday
|
||||
*
|
||||
* @param dayNumber dayNumber e.g. 1 for Monday
|
||||
* @return String weekday
|
||||
* @return weekday
|
||||
* @author Madeleine Vigier
|
||||
*/
|
||||
public static String getDayName(int dayNumber) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user