How to change the date format in variables and queries?

For text representation of Month you can create custom variable with key-value pairs:

For time formatting at the axis see this: