An open API service indexing awesome lists of open source software.

https://github.com/logisticinfotech/lidateutilityswift


https://github.com/logisticinfotech/lidateutilityswift

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

          

# LIDateUtility

[![CI Status](https://img.shields.io/travis/vvdodiya/LIDateUtility.svg?style=flat)](https://travis-ci.org/vvdodiya/LIDateUtility)
[![Version](https://img.shields.io/cocoapods/v/LIDateUtility.svg?style=flat)](https://cocoapods.org/pods/LIDateUtility)
[![License](https://img.shields.io/cocoapods/l/LIDateUtility.svg?style=flat)](https://cocoapods.org/pods/LIDateUtility)
[![Platform](https://img.shields.io/cocoapods/p/LIDateUtility.svg?style=flat)](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.