hey all,
does anyone know if there is some code which gets the current month in number form?
not its name
thanks
Printable View
hey all,
does anyone know if there is some code which gets the current month in number form?
not its name
thanks
Use the Calendar get() method.
thanks for that
You're welcome.
do u know how i could use the number of the current month i get to subtract it from one the user inputs? i tried some things but i cant figure it out
You appear to be asking, in effect, how to subtract. I feel the problem may be something else.
Post what you have tried. And describe what happened. If there is a compiler message you can't understand post the message and someone will help explain what it means.
If what you tried does compile but when you run it, it does not give you the result of the subtraction then describe what it *does* as well as what you expected it would do.