Bitwise Representation for Days in month
I would like to be able to a flag enum for the days of the month.
Current I have found many examples for the month of year or day of week
and they are based on a enum : short and use the hex format to specify the
value of the items.
However I believe a short is to small for 31 days + a last day option. I
think an int would do but I am stuck at working out how to implement this
and allow for bitwise operations to occur.
Can anyone help?
No comments:
Post a Comment