## Goals Save model on node server with createdAt being `new Date()` ## Expected Results Model is saved ## Actual Results Got error ``` Error: LicenseRequestModel.createdAt must be of type 'date', got 'object' (Tue Mar 17 2020 20:03:14 GMT+0100 (Central European Standard Time)) ``` ## Steps to Reproduce Try to create new model on node server with `new Date()` ## Code Sample ``` static create<T>(this: RealmModelThis<T>, realm: Realm, props: any): T { return realm.create<T>( this.schema.name, { ...props, createdAt: new Date(), modifiedAt: new Date() }, Realm.UpdateMode.All ); } ``` ## Version of Realm and Tooling * Realm JS SDK Version: v3.7.0-alpha.2 * Node or React Native: Node v13.3.0 * Client OS & Version: jest