Is there a way to search the SQL query with month numbers instead of month name?
I am trying to use an actual numeric month value for a sql query to output the results. Is there a way to do this without having a function to change the numbers to the actual names of the months and then to numbers up to the month? The following code works for names, what works for numbers?
datename (month, (convert (DateTime, DTSTAMP))) = 'October'
+1
Lulu Ket
source
to share
4 answers