Is there a sql command to get today’s date at midnight and be able to add a number of minutes to it?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, just use datediff and dateadd functions to strip the time from any date, then add a fractional portion of a day to that number
Both selects return 10:00 am on the same day (more or less). This works because of, well, check out this SO answer
EDIT: Added sample script to show how this works: