toggle menu
OpenSRP
androidJvm
switch theme
search in API
engine
/
org.smartregister.fhircore.engine.rulesengine.services
/
DateService
Date
Service
object
DateService
Members
Functions
add
Or
Subtract
Time
Unit
From
Current
Date
Link copied to clipboard
@
JvmOverloads
fun
addOrSubtractTimeUnitFromCurrentDate
(
timeUnitCount
:
Int
,
operation
:
String
,
timeUnit
:
String
=
TimeUnit.YEAR.type
,
dateFormat
:
String
=
SDF_YYYY_MM_DD
)
:
String
compare
Dates
Link copied to clipboard
fun
compareDates
(
firstDate
:
Date
,
secondDate
:
Date
)
:
Int
@
JvmOverloads
fun
compareDates
(
firstDateFormat
:
String
=
SDF_YYYY_MM_DD
,
firstDateString
:
String
,
secondDateFormat
:
String
=
SDF_YYYY_MM_DD
,
secondDateString
:
String
)
:
Int
?