CustomDate

class CustomDate

Class representing a custom-formatted date.

This class is a direct Kotlin translation of the Java code given by Ms. Candy Joyce H. Espulgar (De La Salle University, Mobile Development - MOBDEVE, Term 3, Academic Year 2020-2021).

Constructors

CustomDate
Link copied to clipboard
fun CustomDate()
Creates a custom-formatted date based on the current date.
CustomDate
Link copied to clipboard
fun CustomDate(year: Int, month: Int, dayInMonth: Int)
Creates a custom-formatted date given the year, month, and day components.

Types

Companion
Link copied to clipboard
object Companion
Companion object containing an array that lists the unabbreviated names of the months in the order in which they appear in the Gregorian calendar.

Properties

dayInMonth
Link copied to clipboard
private var dayInMonth: Int
Day component of the date.
month
Link copied to clipboard
private var month: Int
Month component of the date.
year
Link copied to clipboard
private var year: Int
Year component of the date.

Functions

toStringFull
Link copied to clipboard
fun toStringFull(): String
Returns a string representing the date in the following format: Month DD, YYYY (where Month is the unabbreviated name of the month).