Current location: Hot Scripts Forums » Programming Languages » ASP » Month() function


Month() function

Reply
  #1 (permalink)  
Old 11-21-03, 12:44 PM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Month() function

Hey all, quick question.

Is there a function similar to month(date) that gives me the month name rather than the number? Or do I have to set up a switch and get the name that way?

Thanks
Reply With Quote
  #2 (permalink)  
Old 11-21-03, 04:42 PM
jlot6 jlot6 is offline
New Member
 
Join Date: Nov 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
This will do it:
Code:
Response.Write monthname(month(date), true)
Reply With Quote
  #3 (permalink)  
Old 11-24-03, 07:39 AM
hyjacked hyjacked is offline
Wannabe Coder
 
Join Date: Nov 2003
Location: New Brunswick, Canada
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
A note to others reading...if you want the full month name, as I did, change true to false.

And thanks jlot6 for the help.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tremendous Hosting Sale! Accounts from $2.95 and one month FREE! jmanns General Advertisements 0 11-05-03 07:40 AM
changing a specific dateformat in tigra bitesize JavaScript 0 10-30-03 08:58 AM
Help trim code down TheLaughingBandit JavaScript 0 09-02-03 09:50 AM
File Management, sorry i keep changing, this is the last one! :) Arctic ASP 28 08-29-03 12:04 AM
edit php in Squirrelmail jrcortrightiii PHP 1 07-10-03 02:08 PM


All times are GMT -5. The time now is 03:55 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.