Java Code Examples for org.joda.time.LocalDate.getMonthOfYear()

The following are Jave code examples for showing how to use getMonthOfYear() of the org.joda.time.LocalDate class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: Auto.js   File:   Source Code and License Vote up 6 votes
private TimedTask createDisposableTask() {
    LocalTime time = TIME_FORMATTER.parseLocalTime(mDisposableTaskTime.getText().toString());
    LocalDate date = DATE_FORMATTER.parseLocalDate(mDisposableTaskDate.getText().toString());
    LocalDateTime dateTime = new LocalDateTime(date.getYear(), date.getMonthOfYear(), date.getDayOfMonth(),
            time.getHourOfDay(), time.getMinuteOfHour());
    if (dateTime.isBefore( {
        Toast.makeText(this, R.string.text_disposable_task_time_before_now, Toast.LENGTH_SHORT).show();
        return null;
    return TimedTask.disposableTask(dateTime, mScriptFile.getPath(), ExecutionConfig.getDefault());
Example 2
Project: CalendarFX   File:   Source Code and License Vote up 5 votes
static DateValue localDateToDateValue(LocalDate date) {
    return new DateValueImpl(
            date.getYear(), date.getMonthOfYear(), date.getDayOfMonth());