Of course it doesn't, the Java Docs clearly state
showMessageDialog(
Component parentComponent,
Object message, String title,
int messageType)
And I don't know why you're trying to pass currentDay.getTimeInMillis
as the message parameter, the Java Docs state
messageType - the type of message to be displayed: ERROR_MESSAGE, INFORMATION_MESSAGE, WARNING_MESSAGE, QUESTION_MESSAGE, or PLAIN_MESSAGE
Some idea of what you are tying to achieve might help use to provide you with a solution
StackOverflow is not a replacement for the Java Docs or tutorials.