Whenever I’m developing a responsive site or app, I sometimes get confused as to which breakpoint range I am currently viewing, to then effect changes to a particular file. So I thought that whilst working up through the minimum size breakpoints, following mobile first principles, it would be nice to have a notification on the screen that told me what the current / last breakpoint was that had been met.
There are various ways of validating dates in PHP or MySql, sometimes however you may just need to check if a given string is a valid MySql date string, outside of a form validator. One way to achieve this is to use a regular expression, the simple utility function below will accept a string and return true if it’s a valid MySql date.
Page 1 of 3