This commit is contained in:
@@ -100,50 +100,23 @@ export default {
|
||||
data() {
|
||||
return {
|
||||
obj: {
|
||||
startDate: "2000-01-12T10:12:39.594206"
|
||||
// id: 1,
|
||||
// concurrencyToken: 1,
|
||||
// ownerId: 1,
|
||||
// name: "...",
|
||||
// serial: 1,
|
||||
// dollarAmount: 1.1,
|
||||
// active: true,
|
||||
// roles: 1,
|
||||
// startDate: "2000-01-12T10:12:39.594206",
|
||||
// endDate: "2000-01-12T13:40:59.986405",
|
||||
// notes: "...",
|
||||
// count: 1,
|
||||
// customFields: null,
|
||||
// tags: []
|
||||
},
|
||||
obj2: {
|
||||
startDate: "2000-02-12"
|
||||
},
|
||||
startDate: "2000-03-12",
|
||||
lc: locale,
|
||||
menu2: false,
|
||||
|
||||
testDate: new Date().toISOString().substr(0, 10)
|
||||
lc: locale
|
||||
};
|
||||
},
|
||||
computed: {
|
||||
dateFormatted() {
|
||||
// var value = this.obj.startDate;
|
||||
// if (!value) return "";
|
||||
// var dj = dayjs(value);
|
||||
// return dj.format("YYYY-MM-DD hh:mm:ss A");
|
||||
// dateFormatted() {
|
||||
// // var value = this.obj.startDate;
|
||||
// // if (!value) return "";
|
||||
// // var dj = dayjs(value);
|
||||
// // return dj.format("YYYY-MM-DD hh:mm:ss A");
|
||||
|
||||
return this.obj.startDate
|
||||
? dayjs(this.obj.startDate).format("YYYY-MM-DD hh:mm:ss A")
|
||||
: "";
|
||||
// return this.obj.startDate
|
||||
// ? dayjs(this.obj.startDate).format("YYYY-MM-DD hh:mm:ss A")
|
||||
// : "";
|
||||
|
||||
//return this.obj.startDate ? moment(this.date).format("dddd, MMMM Do YYYY") : "";
|
||||
},
|
||||
pickStartDate() {
|
||||
return this.obj.startDate ? dayjs(this.obj.startDate).toDate() : null;
|
||||
// var copiedDate = new Date(date.getTime());
|
||||
//obj.startDate.toISOString().substr(0, 10);
|
||||
}
|
||||
// //return this.obj.startDate ? moment(this.date).format("dddd, MMMM Do YYYY") : "";
|
||||
// }
|
||||
},
|
||||
beforeRouteEnter(to, from, next) {
|
||||
//Cache all required lt keys
|
||||
|
||||
Reference in New Issue
Block a user