If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ASP > Get Month Day

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-30-04, 02:36
luisymary luisymary is offline
Registered User
 
Join Date: Jan 2004
Posts: 10
Question Get Month Day

Hi,

Is there a way to get the current month day using a vbscript function, automatically.

I am using this <%=MONTH(DATE)%> but it displays the number of the current month, I will like to be able to request the name of the month intead of the month number.

I will appreciate any help.

Thanks,

Luis y Mary
Reply With Quote
  #2 (permalink)  
Old 01-30-04, 04:37
Patrick Chua Patrick Chua is offline
Registered User
 
Join Date: Jul 2003
Location: Penang, Malaysia
Posts: 212
<%=MonthName(MONTH(DATE))%>

That should do it!
__________________
Patrick Chua
LBMS ( Learn By My Self) NPQ ( No paper Qualification )
Reply With Quote
  #3 (permalink)  
Old 01-30-04, 10:21
luisymary luisymary is offline
Registered User
 
Join Date: Jan 2004
Posts: 10
Get Month Name

Patrick, this really work. I appreciate your help.

Thanks,

Luis y Mary
Reply With Quote
  #4 (permalink)  
Old 02-03-04, 03:24
Bullschmidt Bullschmidt is offline
Guru
 
Join Date: Jun 2003
Location: USA
Posts: 1,032
And here are some resource to check out the names of all the VBScript functions.

ASP Design Tips - VBScript Language Reference
http://www.bullschmidt.com/devtip-vb...ereference.asp

Windows Script
http://msdn.microsoft.com/scripting/default.asp
Official Microsoft and up to date but site can be slow.
Visual Basic Scripting Edition VBScript Language Reference
http://msdn.microsoft.com/library/de...bscripttoc.asp

Visual Basic Scripting Edition Functions
http://msdn.microsoft.com/library/de...ifunctions.asp

DevGuru VBScript Introduction
http://www.devguru.com/Technologies/...ipt_intro.html

VBScript Language Reference
http://www.asp-help.com/getstarted/ms/vbscript

VBScript Functions
http://www.w3schools.com/vbscript/vb..._functions.asp
__________________
J. Paul Schmidt, Freelance Web and Database Developer
www.Bullschmidt.com
Access Database Sample, Web Database Sample, ASP Design Tips
Reply With Quote
  #5 (permalink)  
Old 02-03-04, 17:01
gyuan gyuan is offline
Registered User
 
Join Date: Dec 2003
Posts: 454
MonthName(Month(Date()), True) displays "Feb"

MonthName(Month(Date()), False) displays "February"
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On