Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

266
Views
Date picker to have selected, a date that comes from api

I have a date picker in vuetify. What I want is that opening v-menu, date picker to have selected a date that comes from api, not the current date. This is what I have:

                 <v-menu ref="dateMenu" v-model="dateMenu" :close-on-content-click="false" 
              transition="scale-transition"
              offset-y min-width="auto" :return-value.sync="dateValue">
              <template v-slot:activator="{ on, attrs }">
                <v-text-field readonly v-bind="attrs" v-on="on" style="padding: 10px;"
                  :value="new Date(Date.parse(taskInfo.scheduledAt)).toLocaleDateString('en- 
               GB') === '' ? new Date().toLocaleDateString() : new 
              Date(Date.parse(taskInfo.scheduledAt)).toLocaleDateString('en-GB')"
                  :label="`${$t('dateActivity')} *`">
                </v-text-field>
              </template>
              <v-date-picker no-title scrollable v-model="taskInfo.scheduledAt" :max="new 
              Date().toISOString()">
              <v-spacer></v-spacer>
                <v-btn text color="primary" @click="dateMenu = false">{{$t('cancel')}}</v-btn>
                <v-btn text color="primary" @click="$refs.dateMenu.save(new 
              Date(Date.parse(taskInfo.scheduledAt)).toLocaleDateString('en-GB'))">OK</v-btn>
              </v-date-picker>
            </v-menu>


taskInfo.scheduledAt => 2021-09-16T09:25:00.000Z 

Date picker

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!