Last active
September 1, 2016 01:24
-
-
Save zh-f/cccff01479b66a7d882579b70eadfb3d to your computer and use it in GitHub Desktop.
Get 1st day of a month in Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private Date get1stDateOfCurrentMonth(){ | |
Calendar c = Calendar.getInstance(); | |
c.set(Calendar.DAY_OF_MONTH,1); | |
return c.getTime(); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment