Tue Jan 7 19:39:37 MST 2020 Let’s talk about today than shall we? I’d like to think it would be a nice moment in time if we could simply get along with everything that happens in this life, yet I doubt it will. It’s a shame if you think about it. A real shame. But what are you going to do with any of it? No one knows exactly. So here we sit waiting for something better to come along, hoping for something to happen and allowing us to actually see what is real and what isn’t.
Talk about way easy to add to a date using MySQL. Didn't know it would be this simple:
Let's say you want to add a certain number of years to a date:
DATE_ADD(NOW(), INTERVAL 1 YEAR)
Now, wasn't that easy?
You can do the same thing for days as well. Just change INTERVAL 1 YEAR to INTERVAL 1 DAY
Yep, that's pretty much it.
Happy coding!
Comments
Post a Comment