J
james
Hi all,
I'm relatively new to java so I apologise if this is a simple
question. I am trying to detect when the system date changes so that I
can start a new log file for each day. I have setup the code to create
a new log file etc. however I can't seem to find any information on
how to detect changes in the system date. I am only interested in when
the day changes (not the time etc.) and I have looked into change
listeners however I'm not sure if this is the right approach or not?
Can anyone please point me in the right direction, or even better to a
good tutorial on how to do this!
Thanks in advance,
James
I'm relatively new to java so I apologise if this is a simple
question. I am trying to detect when the system date changes so that I
can start a new log file for each day. I have setup the code to create
a new log file etc. however I can't seem to find any information on
how to detect changes in the system date. I am only interested in when
the day changes (not the time etc.) and I have looked into change
listeners however I'm not sure if this is the right approach or not?
Can anyone please point me in the right direction, or even better to a
good tutorial on how to do this!
Thanks in advance,
James