I just tried,
date_create_from_format('Ym','201302')
And I guess because it's the 29th today, it's actually giving me back March 1st.
I was hoping to get back 2013-02-01 00:00:00
.
Is there a different function that will parse a date "correctly"? If not, I can extract it myself, not a big deal.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…