On Tue, Mar 23, 2010 at 07:25:56PM +0000, Bernie Reiter scratched on the wall:

> Sunday, March 21st 2010:    SELECT strftime('%w',2010-03-21); => 6
> Monday, March 22nd 2010:   SELECT strftime('%w',2010-03-22); => 5
> Tuesday, March 23nd 2010:  SELECT strftime('%w',2010-03-23); => 4


  Try putting quotes around those... e.g.: strftime('%w','2010-03-21');

  The way you've written it, you're computing 2010 minus 03 minus 21,
  e.g. the integer 1986.

   -j

-- 
Jay A. Kreibich < J A Y  @  K R E I B I.C H >

"Our opponent is an alien starship packed with atomic bombs.  We have
 a protractor."   "I'll go home and see if I can scrounge up a ruler
 and a piece of string."  --from Anathem by Neal Stephenson
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to