Hello,
I am trying to write a program which as part of it has to check if one date occured before or after the current date. I already have the part that returns the before/after date in YYYYMMDD format (since 20070412 would be larger then 20070406). Now I need to get the system date in this format.
If I were to be able to get the system date in this format, as a string or an int, I could then run the program:
if currentDate > userDate
{
statusLabel.setText("Your date has already happened")
}
else
{
statusLabel.setText("Your Date has not yet happened")
}
That is not the actual program, just a demo of it.
2007-03-06
04:12:49
·
1 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design