I have a vector that is created by retrieving data from a database
It is filled with information that includes Date, Time, Volume ect…
I need to create a spreadsheet from these values however I need to Remove values where
the date is on a weekend(and specific holidays if possible) but more importantly the weekends
If anyone knows of a function that is able to do this that would be great Thanks.
I have a vector that is created by retrieving data from a database It
Share
If you have a
Dateobject in Java, then you can use the Calendar object to do this.Get an instance of the Calendar, then call get(Calendar.DAY_OF_WEEK). If the value is Saturday or Sunday, remove it from your
Collection.