thewhistler1
Technical User
I'm trying to produce an order number out of parts of the date.
I tried this:
select extract(month from now());
and I get: 2
then I did this:
select extract('month' from now())|| extract('day' from now());
and I get: 210
But what I would like to know is how to make it give me a two digit number for the month and for the day such as 0211.
I tried this:
select extract(month from now());
and I get: 2
then I did this:
select extract('month' from now())|| extract('day' from now());
and I get: 210
But what I would like to know is how to make it give me a two digit number for the month and for the day such as 0211.