How can I get the DATE_ADD to output the hrs:min:secs after it calculates 31 days fro

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dseals22
    New Member
    • Jan 2017
    • 74

    How can I get the DATE_ADD to output the hrs:min:secs after it calculates 31 days fro

    Here is what I have so far when use the DATE_ADD function in MySQL Workbench 6.3, but I have been struggling to output the hrs:mins:secs (you don't see the code for that output because I didn't write it here). I know that I can use INTERVAL HOUR_SECOND to display hrs:mins:secs but I don't understand how it works.
    SELECT DATE_ADD('2017-01-26', INTERVAL 31 DAY) AS '31 Days';
Working...