A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Number of days in given month

  1. #1
    Senior Member
    Join Date
    Oct 2002
    Location
    Copenhagen
    Posts
    228

    Number of days in given month

    Hi

    Does anyone know a way to return the number of days in a given month?

    Thanks

  2. #2

  3. #3
    Senior Member
    Join Date
    Oct 2002
    Location
    Copenhagen
    Posts
    228
    Thanks!

    Ended up using this though:

    Code:
    var tempDate:Date = new Date();
    var newDate:Date = new Date(tempDate.getFullYear(), tempDate.getMonth() + 1, 0);
    			
    return newDate.getDate()

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center