hi everyone

i've been using hubspot for my blog, so i create a subdomain blog.domain.com which redirected to my hubspot blog posts

however, i am discontinuing with hubspot, and have reposted all my blog posts on my my domain www.domain.com

i am trying to create a htaccess record to redirect all the old links to the new ones.

something like:
old address: blog.domain.com/(article slug)
new address: www.domain.com/2016/10/29/(article slug)
(yes the date is fixed and the same for all posts, i've created them all today)

can someone help me with the htaccess record?

thanx in advance!