used ilib function to get the day info