Subversion Repositories SmartDukaan

Rev

Rev 23780 | Rev 24440 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 23780 Rev 24219
Line 59... Line 59...
59
	public static final String toString(LocalDate localDate){
59
	public static final String toString(LocalDate localDate){
60
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_PATTERN);
60
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_PATTERN);
61
		String formattedDateTime = localDate.format(formatter);
61
		String formattedDateTime = localDate.format(formatter);
62
		return formattedDateTime;
62
		return formattedDateTime;
63
	}
63
	}
-
 
64
 
-
 
65
	public static final String toHyphenatedString(LocalDate localDate){
-
 
66
		DateTimeFormatter formatter = DateTimeFormatter.ofPattern(DATE_PATTERN_HYPHENATED);
-
 
67
		String formattedDateTime = localDate.format(formatter);
-
 
68
		return formattedDateTime;
-
 
69
	}
64
	
70
	
65
	public static final String toString(LocalDateTime localDateTime){
71
	public static final String toString(LocalDateTime localDateTime){
66
		if(localDateTime == null){
72
		if(localDateTime == null){
67
			return null;
73
			return null;
68
		}
74
		}