In SX Microcontrollers, SX/B Compiler and SX-Key Tool, bean wrote: Mike, It should work. Do you have any other code between these two lines ? [code] [2] tmp1 = Year / 4 ' Step 1a. - get a quarter of the year tmp2 = __REMAINDER ' Setp 1b. - save the remainder [/2][/code] Bean. ---------- End of Message ---------- You can view the post on-line at: http://forums.parallax.com/forums/default.aspx?f=7&p=1&m=145383#m145386 Need assistance? Send an email to the Forum Administrator at forumadmin@parallax.com The Parallax Forums are powered by dotNetBB Forums, copyright 2002-2006 (http://www.dotNetBB.com)