Latest 1.0
Homepage https://github.com/hughbe/Date-Previous
License MIT
Platforms ios 8.0
Authors

A library that lets you get the previous day of week from a given date.

CI Status
Version
License
Platform

Usage

import Date_Previous

let date = Date() // E.g 2018-02-13
let previousMonday = date.previous(dayOfWeek: DayOfWeek.Monday) // E.g. 2018-02-12

Installation

Date+Previous is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'Date+Previous'

Latest podspec

{
    "name": "Date+Previous",
    "version": "1.0",
    "summary": "A library that lets you get the previous day of week from a given date.",
    "description": "A library that lets you get the previous day of week from a given date. Useful for getting the previous Monday, for example.",
    "homepage": "https://github.com/hughbe/Date-Previous",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "hughbe": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hughbe/Date-Previous.git",
        "tag": "1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "swift_version": "4.0",
    "source_files": "src/*"
}

Pin It on Pinterest

Share This