sql server - Datetime error querying sqlserver database via django-mssql -


i using django-mssql query sqlserver database: querying datetime value, 'conversion failed when converting date and/or time character string.'

results = sales.objects.using('eql').filter(saledate__year=2017) len(results) 

where 'saledate' datetime value - has else experienced this? (and have workaround?)


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -