https://pvillage.org/archives/14219
Can we convert date to number in Oracle?