kutils / com.celites.kutils / java.util.Date

Extensions for java.util.Date

asString

infix fun Date.asString(parseFormat: String): String

calendar

val Date.calendar: Calendar

Gives Calendar object from Date

dayOfMonth

var Date.dayOfMonth: Int

Gets and sets value of DayOfMonth from Date Object

hour

var Date.hour: Int

Gets and sets value of Hour from Date Object

hourOfDay

var Date.hourOfDay: Int

Gets and sets value of HourOfDay from Date Object

minute

var Date.minute: Int

Gets and sets value of Minute from Date Object

monthFromCalendar

var Date.monthFromCalendar: Int

Gets and sets value of Month from Date Object

second

var Date.second: Int

Gets and sets value of Second from Date Object

yearFromCalendar

var Date.yearFromCalendar: Int

Gets and sets value of DayOfMonth from Date Object