Subversion Repositories SmartDukaan

Rev

Rev 32603 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32603 Rev 35100
Line 28... Line 28...
28
	}
28
	}
29
 
29
 
30
	private static final DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
30
	private static final DateTimeFormatter dateFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy");
31
	private static final DateTimeFormatter ddMMMyyyyHypenatedFormatter = DateTimeFormatter.ofPattern("dd-MMM-yyyy");
31
	private static final DateTimeFormatter ddMMMyyyyHypenatedFormatter = DateTimeFormatter.ofPattern("dd-MMM-yyyy");
32
	private static final DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
32
	private static final DateTimeFormatter dateMonthFormatter = DateTimeFormatter.ofPattern("MMM-dd");
-
 
33
	private static final DateTimeFormatter dateMonthFormatterNonHyphenated = DateTimeFormatter.ofPattern("MMM dd");
33
	private static final DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
34
	private static final DateTimeFormatter reporticoFormatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
34
	//rkb
35
	//rkb
35
	public static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
36
	public static final DateTimeFormatter dateTimeFormatter = DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss");
36
	private static final DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
37
	private static final DateTimeFormatter ymFormatter = DateTimeFormatter.ofPattern("yyyyMM");
37
	private static final DateTimeFormatter ymdFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
38
	private static final DateTimeFormatter ymdFormatter = DateTimeFormatter.ofPattern("yyyyMMdd");
Line 104... Line 105...
104
 
105
 
105
	public static String formatDateMonth(LocalDateTime dateTime) {
106
	public static String formatDateMonth(LocalDateTime dateTime) {
106
		return dateTime.format(dateMonthFormatter);
107
		return dateTime.format(dateMonthFormatter);
107
	}
108
	}
108
 
109
 
-
 
110
	public static String formatDateMonthNonHyphenated(LocalDateTime dateTime) {
-
 
111
		return dateTime.format(dateMonthFormatterNonHyphenated);
-
 
112
	}
-
 
113
 
109
	public static String formatDDMMMyyyyFormatter(LocalDate localDate) {
114
	public static String formatDDMMMyyyyFormatter(LocalDate localDate) {
110
		return localDate.format(ddMMMyyyyHypenatedFormatter);
115
		return localDate.format(ddMMMyyyyHypenatedFormatter);
111
	}
116
	}
112
 
117
 
113
	public static String formatReporitcoDate(LocalDateTime dateTime) {
118
	public static String formatReporitcoDate(LocalDateTime dateTime) {