https://github.com/logisticinfotech/lidateutilityswift
https://github.com/logisticinfotech/lidateutilityswift
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/logisticinfotech/lidateutilityswift
- Owner: logisticinfotech
- License: mit
- Created: 2019-04-04T10:30:59.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-13T14:33:01.000Z (over 7 years ago)
- Last Synced: 2025-02-04T01:34:21.299Z (over 1 year ago)
- Language: Swift
- Size: 40 KB
- Stars: 1
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# LIDateUtility
[](https://travis-ci.org/vvdodiya/LIDateUtility)
[](https://cocoapods.org/pods/LIDateUtility)
[](https://cocoapods.org/pods/LIDateUtility)
[](https://cocoapods.org/pods/LIDateUtility)
## Example
To run the example project, clone the repo, and run `pod install` from the Example directory first.
## Requirements
## Installation
LIDateUtility is available through [CocoaPods](https://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod 'LIDateUtility'
```
## Description
Here are the full Description of How to use methods in project and it's output.
### 1) Get current year
```swift
let currentYear = LIDateUtility.getCurrentYear()
print("Current year: \(currentYear)")
```
### 2) Get current month
```swift
let currentMonth = LIDateUtility.getCurrentMonth()
print("Current Month: \(currentMonth)")
```
Now you can get more date optioration [Here](https://www.logisticinfotech.com/blog/date-operations-swift-android/).
## License
LIDateUtility is available under the MIT license. See the LICENSE file for more info.