Skip to content

Commit

Permalink
Done: checkout agrodealer farm inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
MuindiStephen committed Sep 11, 2024
1 parent db4dfbc commit b00afa4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,6 @@ class MyCartAgroDealerInputsFragment : Fragment() {

Timber.tag(this@MyCartAgroDealerInputsFragment.toString())
.d("Adapter has %d items", cartAdapter.itemCount)

}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ object DateFormat {
return sdf.format(cal.time)
}

@SuppressLint("SimpleDateFormat")
fun getCurrentDate(): String? {
val cal = Calendar.getInstance()
val sdf = SimpleDateFormat("d MMM yyyy")
return sdf.format(cal.time)
}


fun Date.minusDays(days: Int): Date {
val calendar = Calendar.getInstance()
calendar.time = this
Expand Down

0 comments on commit b00afa4

Please sign in to comment.