Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing date format in Phpstorm/Intellij

That question is not about the code produced by the IDE, it is about IDE itself.

Phpstorm/Intellij always shows dates in "Month/DayOfMonth/Year Hour:Minute" format like 4/16/14 11:40 AM

You can check version control view, local history view or changes view. Is it possible to change the Phpstorm/Intellij date format via GUI or some setting file.

like image 896
Anıl Özselgin Avatar asked Jun 06 '14 14:06

Anıl Özselgin


1 Answers

For Live Templates, you can specify the desired format as a date() function parameter (see http://www.jetbrains.com/webstorm/webhelp/edit-template-variables-dialog.html)

For file templates, I can suggest using separate variables for different date fields. For example, ${YEAR}/${MONTH}/${DAY} instead of ${DATE}

as for version controls, date format is not configurable and different for different VCs. There is no way to set the date format to be used everywhere in the IDE - please vote for IDEA-99114. In general, it depends on the system locale

see also comments in IDEABKL-6449

like image 50
lena Avatar answered Oct 20 '22 08:10

lena