I work from home about twice a week. Yesterday I physically went to work. However, I hadn't known that I was supposed to work from home until my senior told me. So, I asked my team manager if I could work from home tomorrow instead.
"I hadn't known that" or "I didn't know that". I'm not sure which one of these is correct.