From the user I receive a DateTime
variable. I want to get the name of the month that was entered. Is there a way to do so? (Apart from having a bunch of if
statements)
- 积分
0 - 话题
0 - 评论
3247 - 注册排名
1514
From the user I receive a DateTime
variable. I want to get the name of the month that was entered. Is there a way to do so? (Apart from having a bunch of if
statements)
Use the
intl
package.DateFormat("MMMM").format(dateTime);