Quantcast
WoWInterface - View Single Post - Removal of Calendar related API
View Single Post
08-06-18, 08:29 PM   #4
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,276
Lua Code:
  1. local date = C_Calendar.GetDate()
  2. local presentWeekday = date.weekday
  3. local presentMonth = date.month
  4. local presentDay = date.monthDay
  5. local presentYear = date.year

or in game
Code:
/run local date = C_Calendar.GetDate() print(date.weekday, date.month, date.monthDay, date.year)
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.
  Reply With Quote