Formatting dates in Sybase

It’s easy to format dates using the convert function in Sybase, but it’s less easy to remember the cryptic formatting style codes that go with it. This post lists the formatting styles.

Counting the Days Between Two Java Dates using a Gregorian Calendar

Today I needed to figure out a way to count the number of days between two dates in Java. There are no API methods that will do this for you so a little work is required to achieve this. This post illustrates the solution I came up with.