I have 2 dates that are unix time stamps and I would have to figure out if the dates are in same month. For example if I have 1393624800 = 02 / 28 / 14
and 1391472000 = 2 / 4 / 2014
. I figured I could convert the unix time stamps to format like 28-02-2014
and extract the month, but I feel like its kinda dirty method. What is the best way to do this?
EDIT: Sry I forgot. Also have to make sure its the same year.