Werner Pilnei Posted December 4, 2015 Share Posted December 4, 2015 I have a couple of datetime fields wrapped in a multiplier field. I put in 02.01.2016 , the output is 02.01.2015. This happens only up to the 3rd of January 2016, with the 4th of January the output is okay again (04.01.2016). Checking the database entry shows the correct date (02.01.2016). See also the attached picture of the input, database and the output. Any idea what's happening here? Link to comment Share on other sites More sharing options...
Werner Pilnei Posted December 5, 2015 Author Share Posted December 5, 2015 Solved - my fault -sorry: This was wrong $dateFormattedDatum = strftime("%d.%m.%G", $date); this does it correct: $dateFormattedDatum = strftime("%d.%m.%Y", $date); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now