Skip to content

WrightsCS/WCSDateRange

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

WCSDateRange * range = [WCSDateRange new];
range.format = WCSDateRangeFormatSimple;
range.dateRange = WCSDateRangeTypeMonth;

NSLog(@"Date Range String: %@", range.rangeString);

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!