Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateUtils: Get month implementation too much bloated. #6

Open
vijayrawatsan opened this issue Jul 12, 2015 · 1 comment
Open

DateUtils: Get month implementation too much bloated. #6

vijayrawatsan opened this issue Jul 12, 2015 · 1 comment

Comments

@vijayrawatsan
Copy link

Use
return new SimpleDateFormat("MMMMM").format(date); to get month
Please do relevant null checks as well.

@jaydeepw
Copy link
Owner

Yes. Agreed. Tthats really shitty code written long time back and never looked into again. I was thinking of removing that method altogether and also run static code analysis on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants