Formatting Date/Time

Is it possible to access the IntelliJ Date/Time formatter that is used for formatting $/$ in file templates?

I want to make sure I format the Date/time from my plugin the same way people are used to.

0
2 comments
Avatar
Permanently deleted user

I believe the formatting is simply done with


At least that's what the output looks like.

0
Avatar
Permanently deleted user

Hi Sascha,

this was what I had implemented myself, but I figured IDEA might use some user-specific preferences or locale and if not now, then maybe in the future.

For now, I'll just keep my code like it is.

Thanks for your quick reply.

0

Please sign in to leave a comment.