I'm using my own manualy entered timestamps, and for user ease-of-use its just,
YYYYMMDD-HH:MM
I'm using str_replace() and store it in the database as YYYYMMDDHHMM for easy greater/less than todays date queries,
When editing, I need to call YYYYMMDDHHMM and put it back to the original YYYY-HH:MM format so I don't confuse people,
is there any function to add text after x# of digits into a variable?
Thanks in advanced, I don't even know where to start searching for this one,