Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hughbe/date-withouttime
A library that lets you get the date part only from a Swift Date object.
https://github.com/hughbe/date-withouttime
Last synced: 17 days ago
JSON representation
A library that lets you get the date part only from a Swift Date object.
- Host: GitHub
- URL: https://github.com/hughbe/date-withouttime
- Owner: hughbe
- License: mit
- Created: 2018-02-16T12:27:12.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-16T12:52:02.000Z (almost 7 years ago)
- Last Synced: 2024-12-10T17:09:37.799Z (about 1 month ago)
- Language: Swift
- Size: 12.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DateWithoutTime
A library that lets you get the date part only from a Swift Date object.
[![CI Status](http://img.shields.io/travis/hughbe/DateWithoutTime.svg?style=flat)](https://travis-ci.org/hughbe/DateWithoutTime)
[![Version](https://img.shields.io/cocoapods/v/DateWithoutTime.svg?style=flat)](http://cocoapods.org/pods/DateWithoutTime)
[![License](https://img.shields.io/cocoapods/l/DateWithoutTime.svg?style=flat)](http://cocoapods.org/pods/DateWithoutTime)
[![Platform](https://img.shields.io/cocoapods/p/DateWithoutTime.svg?style=flat)](http://cocoapods.org/pods/DateWithoutTime)## Usage
```swift
import DateWithoutTimelet date = Date() // E.g 2018-02-16 12:26
let dateWithoutTime = date.dateWithoutTime // E.g. 2018-02-16 00:00
```## Installation
DateWithoutTime is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:```ruby
pod 'DateWithoutTime'
```