want to validate date, with leap year check, pl g

Results 1 to 2 of 2

Thread: want to validate date, with leap year check, pl g

  1. #1
    Join Date
    Dec 1969
    Posts
    168

    Default want to validate date, with leap year check, pl g

    I&#039m trying to validate a date which user is entering but i&#039m unable to validate leap year. Help me out!!

  2. #2
    Join Date
    Dec 1969
    Posts
    52

    Default RE: want to validate date, with leap year check,

    This is from my script:<BR>function daysInFeb(y)<BR>{<BR> if ((y % 4) == 0)<BR> return 29<BR><BR> return 28<BR>}<BR><BR>where y = year

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •