class to dayclass