项目作者: WrightsCS

项目描述 :
Simple date range class.
高级语言: Objective-C
项目地址: git://github.com/WrightsCS/WCSDateRange.git
创建时间: 2018-06-24T22:52:55Z
项目社区:https://github.com/WrightsCS/WCSDateRange

开源协议:Apache License 2.0

下载


WCSDateRange

Simple date range class. Simply provide a date range enum and the class will provide NSDate to/from, NSString date range. Accepts format enum as well to provide different date formats.

Example

Simple to use: assign a format and dateRange enum and grab the results using rangeString.

  1. WCSDateRange * range = [WCSDateRange new];
  2. range.format = WCSDateRangeFormatSimple;
  3. range.dateRange = WCSDateRangeTypeMonth;
  4. NSLog(@"Date Range String: %@", range.rangeString);
  5. Output: Date Range String: 06/01/2018 - 06/30/2018

@WrightsCS

Twitter: @WrightsCS
http://www.wrightscsapps.com

Apps using WCSDateRange

If you are using this in your app, please let me know and I will add your app here!