dil_bert Posted December 19, 2016 Share Posted December 19, 2016 g day today ive got a calc questionhow to come from this date formate 23.01.201723.01.2017to this09Tue Quote Link to comment https://forums.phpfreaks.com/topic/302773-change-of-date-formate-in-calc/ Share on other sites More sharing options...
requinix Posted December 19, 2016 Share Posted December 19, 2016 Use strptime to read in the date string, then date to output it in whatever format you want. Or DateTime::createFromFormat followed by ->format. Quote Link to comment https://forums.phpfreaks.com/topic/302773-change-of-date-formate-in-calc/#findComment-1540490 Share on other sites More sharing options...
Barand Posted December 19, 2016 Share Posted December 19, 2016 As Jan 23rd 2017 is a Monday, and there is no "09" anywhere in your data, I know of no function that could give that result from that input. 1 Quote Link to comment https://forums.phpfreaks.com/topic/302773-change-of-date-formate-in-calc/#findComment-1540492 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.