How can I generate the name of the month (e.g: Oct/October) from this date object in jooq?
date- "2019-11-01 00:00:00"
want to extract month name from date.
output- November
Thanks in advance.
How can I generate the name of the month (e.g: Oct/October) from this date object in jooq?
date- "2019-11-01 00:00:00"
want to extract month name from date.
output- November
Thanks in advance.
Copyright © 2021 Jogjafile Inc.
You can extract the month number using
DSL.month(Field)
.jOOQ doesn't vendor specific support date time formatting functions out of the box. You could use plain SQL templating to use vendor specific functionality, such as:
If you need to do this several times and don't always want to worry about vendor agnosticity, you can create a
CustomField
: