NetBeans Code Templates ${date}?

后端 未结 6 2125
感动是毒
感动是毒 2021-02-14 03:16

I have this code template in Eclipse

@since ${date}

when entered i get something like this :

@since 4.8.2009

6条回答
  •  难免孤独
    2021-02-14 03:47

    Inserting ${date?date?string("yyyy")} within your template will do the trick (if you want year only)

提交回复
热议问题