Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Taylor Mitchell 19 posts 43 karma points
    Oct 14, 2015 @ 13:44
    Taylor Mitchell
    0

    Have a blank date by default for the Umbraco datepicker

    Is it possible to create a datepicker that will not automatically set a date upon page load? I'm not sure why, but every time I go to the page it's on, it defaults to todays date, but I'm using it for a custom grid and I'm using the dates as a search field. I want it as an option not a requirement. Any idea how I can do this?

    Start Date<umb-editor model="startDatePicker"></umb-editor>
    End Date<umb-editor model="endDatePicker"></umb-editor>
    
    $scope.startDatePicker = {
            view: 'datepicker',
            config: {
                pickDate: true,
                pickTime: false,
                pick12HourFormat: false,
                format: 'MM-DD-YYYY'
            },
            value: new Date()
        }
    
        $scope.endDatePicker = {
            view: 'datepicker',
            config: {
                pickDate: true,
                pickTime: false,
                pick12HourFormat: false,
                format: 'MM-DD-YYYY'
            },
            value: new Date()
        }
    
Please Sign in or register to post replies

Write your reply to:

Draft