//
//  ExtensionString.swift
//  RealCalendar
//
//  Created by Lee on 2020/08/20.
//  Copyright © 2020 UPs. All rights reserved.
//

import Foundation

extension String {
  func toDate() -> Date? {
    let dateFormatter = DateFormatter()
    dateFormatter.dateFormat = "yyyyMMdd"
    return dateFormatter.date(from: self)
  }
}
