如何在mongo中将日期编号设置为日期变量

时间:2016-11-01 17:14:32

标签: javascript mongodb

我在mongo中有这个变量

f_date.setDay(1);

我想修改f_date的第一天到第一天,我想的是

// Top-level build file where you can add configuration options common to all sub-projects/modules.

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.2+'

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        jcenter()
        maven { url "https://jitpack.io" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir
}

怎么做???

1 个答案:

答案 0 :(得分:1)

方法是setDate

f_date.setDate(1);