shoheiyokoyama / Koyomi

Simple customizable calendar component in Swift :calendar:
MIT License
749 stars 103 forks source link

Get displayed month's name #28

Open ghost opened 7 years ago

ghost commented 7 years ago

How do I get the month's name that the calendar is currently displaying?

shoheiyokoyama commented 7 years ago

@lance2611 Use currentDateString() If you want to change date format, specify date format.

let currentDateString = koyomi.currentDateString()

// Enabled to chane date format
let currentDateString = koyomi.currentDateString(withFormat: "MM/yyyy")