Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

DateTime

//first day and last day of month
DateTime date = ...
var firstDayOfMonth = new DateTime(date.Year, date.Month, 1);
var lastDayOfMonth = firstDayOfMonth.AddMonths(1).AddDays(-1);
Source by www.codegrepper.com #
 
PREVIOUS NEXT
Tagged: #DateTime
ADD COMMENT
Topic
Name
1+7 =