Do you mean curdate when you insert, or when you select? wouldn't make much sense when you select, so I'll assume when you insert / update.
In MySQL this is a special type, in postgresql you get to make a trigger / function pair. There's one in the snippet library by me that does that.