|
|
|
@ -77,7 +77,7 @@ fun Date.getDayNumber() : String { |
|
|
|
} |
|
|
|
} |
|
|
|
// Return the 3 first letters of the date's day |
|
|
|
// Return the 3 first letters of the date's day |
|
|
|
fun Date.getShortDayName() : String { |
|
|
|
fun Date.getShortDayName() : String { |
|
|
|
return SimpleDateFormat("EE", Locale.getDefault()).format(this).substring(0, 3) |
|
|
|
return SimpleDateFormat("EEE", Locale.getDefault()).format(this) |
|
|
|
} |
|
|
|
} |
|
|
|
// Return the month & year of the date |
|
|
|
// Return the month & year of the date |
|
|
|
fun Date.getMonthAndYear(): String { |
|
|
|
fun Date.getMonthAndYear(): String { |
|
|
|
|