Commit b381187a authored by Trisno's avatar Trisno

benerin tanggal renewal dan build 116

parent 5c79fa43
{
"expo": {
"extra" : {
"buildNumber" : "115",
"buildNumber" : "116",
"remarks": ""
},
......
......@@ -5,6 +5,7 @@ import Axios from 'axios';
import MyStatusBar from './MyStatusBar';
import i18n from 'i18n-js';
import Toast from 'react-native-tiny-toast';
import moment from 'moment'
class Renewal extends React.Component {
constructor(props) {
......@@ -76,7 +77,7 @@ class Renewal extends React.Component {
var date = new Date(date_arr[0], date_arr[1], date_arr[2]);
date.setFullYear(date.getFullYear() + 1);
let date_nextyear_string = date.getFullYear() + "-" + date.getMonth() + "-" + date.getDate()
let date_nextyear_string = moment([date.getFullYear(),date.getMonth(), date.getDate()]).month(date.getMonth() - 1).format("YYYY-MM-DD")
console.log("INI YA : " + date_nextyear_string)
this.setState({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment