Click here to Skip to main content
       

.NET Framework

 
GeneralRe: [VB.NET 2008] DataSet and XML files PinmemberEddy Vluggen14-Dec-12 0:34 
QuestionAssembly with different .NET framework versions Pinmembermarca29212-Dec-12 10:05 
AnswerRe: Assembly with different .NET framework versions PinmemberGerry Schmitz12-Dec-12 12:25 
QuestionUse A Cookie To Send PersonID To Different Page PinmemberxnaLearner12-Dec-12 4:33 
Questiondont allow user to select existing date PinmemberxnaLearner10-Dec-12 5:46 
AnswerRe: dont allow user to select existing date PinprotectorPete O'Hanlon10-Dec-12 5:53 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner10-Dec-12 6:23 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner10-Dec-12 23:26 
Hi Pete,
Im trying to give the UI experience of date if it has been previously accepted.
 
In My JS file:
/**
* An Array of day names starting with Sunday.
*/
Date.dayNames = ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
 
/**
* An Array of abbreviated day names starting with Sun.
*/
Date.abbrDayNames = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
 
/**
* An Array of month names starting with Janurary.
*/
Date.monthNames = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
 
/**
* An Array of abbreviated month names starting with Jan.
*/
Date.abbrMonthNames = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];
 
/**
* The first day of the week for this locale.
*/
Date.firstDayOfWeek = 1;
 
/**
* The format that string dates should be represented as (e.g. 'dd/mm/yyyy' for UK, 'mm/dd/yyyy' for US, 'yyyy-mm-dd' for Unicode etc).
*/
Date.format = 'dd/mm/yyyy';
 
/**
* The first two numbers in the century to be used when decoding a two digit year. Since a two digit year is ambiguous (and date.setYear
* only works with numbers < 99 and so doesn't allow you to set years after 2000) we need to use this to disambiguate the two digit year codes.
*/
Date.fullYearStart = '20';
 
(function () {
    function add(name, method) {
        if (!Date.prototype[name]) {
            Date.prototype[name] = method;
        }
    };
 
    /**
    * Checks if the year is a leap year.
    */
    add("isLeapYear", function () {
        var y = this.getFullYear();
        return (y % 4 == 0 && y % 100 != 0) || y % 400 == 0;
    });
 
    /**
    * Checks if the day is a weekend day (Sat or Sun).
    */
    add("isWeekend", function () {
        return this.getDay() == 0 || this.getDay() == 6;
    });
 
I'm tryihg to add a check into 'isWeekend' to include dates that already exist but don't know how.
 
Can you Advise?
 
Thanks
GeneralRe: dont allow user to select existing date PinprotectorPete O'Hanlon10-Dec-12 23:32 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner10-Dec-12 23:46 
GeneralRe: dont allow user to select existing date PinprotectorPete O'Hanlon10-Dec-12 23:51 
GeneralRe: dont allow user to select existing date PinmemberxnaLearner11-Dec-12 0:21 
GeneralRe: dont allow user to select existing date PinprotectorPete O'Hanlon11-Dec-12 1:02 
QuestionRun through loop for week and dont select weekends PinmemberxnaLearner10-Dec-12 4:13 
AnswerRe: Run through loop for week and dont select weekends PinprotectorPete O'Hanlon10-Dec-12 4:31 
GeneralRe: Run through loop for week and dont select weekends PinmemberxnaLearner10-Dec-12 4:52 
GeneralRe: Run through loop for week and dont select weekends PinprotectorPete O'Hanlon10-Dec-12 4:53 
QuestionDeploying a Windows Service Pinmemberindian14310-Dec-12 4:09 
AnswerRe: Deploying a Windows Service PinprotectorPete O'Hanlon10-Dec-12 5:04 
GeneralRe: Deploying a Windows Service Pinmemberindian14310-Dec-12 5:08 
GeneralRe: Deploying a Windows Service PinprotectorPete O'Hanlon10-Dec-12 5:20 
Questionrun through startDate to endDate and add each record to DB PinmemberxnaLearner10-Dec-12 2:04 
AnswerRe: run through startDate to endDate and add each record to DB PinmemberxnaLearner10-Dec-12 2:35 
QuestionASP.NET Post Textbox After Button Click PinmemberxnaLearner9-Dec-12 11:15 
AnswerRe: ASP.NET Post Textbox After Button Click PinmvpRichard MacCutchan9-Dec-12 21:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.


Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 30 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid