Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


pls help! pls help!

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,52368
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> pls help! pls help!
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 pls help! pls help! - 10/1/2007 11:04:28 PM   
  aerialv

 

Posts: 4
Score: 0
Joined: 10/1/2007
Status: offline
im making a program that has a periodical reports. it will search the date from and to so i can see in the result page the data from the date entered and up to the date entered. since the date format is like this one, 6/17/2007, i want to see in the result page the real month which is june. so meaning, i want to convert the numerical month into words.
here is the example:
from: 6/17/2007

to: 8/12/2007

in the result page,, i want to convert this into words like these one:

from June 16, 2007 to August 12, 2007

anyone, pls help me!
thanks a lot!!
 
 
Post #: 1
 
 RE: pls help! pls help! - 10/2/2007 1:46:17 AM   
  ebgreen


Posts: 4595
Score: 29
Joined: 7/12/2005
Status: offline
The substitution is easy. Search the forum for "dictionary". Then make a dictionary of the months and use it to substitute for the number.

_____________________________

"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick
Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm
http://www.visualbasicscript.com/m_47117/tm.htm

(in reply to aerialv)
 
 
Post #: 2
 
 RE: pls help! pls help! - 10/2/2007 3:45:17 AM   
  TNO


Posts: 1036
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
My preference:

Dim MyVar
MyVar = MonthName(10, True) ' MyVar contains "Oct".

_____________________________

Consolidated Script Component: The Acid Test

A universe of complexity...

(in reply to ebgreen)
 
 
Post #: 3
 
 RE: pls help! pls help! - 10/2/2007 6:19:22 AM   
  webber123456

 

Posts: 34
Score: 0
Joined: 9/20/2007
Status: offline
http://www.ilovejackdaniels.com/asp/vbscript-date-format-functions/

or

http://www.aspkey.net/aspkey/_store/timelibrary/tloverview.asp

< Message edited by webber123456 -- 10/2/2007 6:21:24 AM >

(in reply to aerialv)
 
 
Post #: 4
 
 RE: pls help! pls help! - 10/2/2007 2:02:49 PM   
  aerialv

 

Posts: 4
Score: 0
Joined: 10/1/2007
Status: offline
thanks guys but i still dont get it..can u give me a more simpler script? i mean the exact thing to do? im a beginner  thats why so im not quite familiar yet.. xD

thanks a lot again! hope u can help me on this one!

(in reply to webber123456)
 
 
Post #: 5
 
 RE: pls help! pls help! - 10/22/2007 10:37:13 PM   
  hnikou

 

Posts: 3
Score: 0
Joined: 10/20/2007
Status: offline
Hi aerialv,

If your date is dynamic value. you are able to do by changing your date format from <%=(Recordset1.Fields.Item("todate").Value)%> to <%= DoDateTime((Recordset1.Fields.Item("todate").Value), 1, 4105) %> in result page. you should change "Recordset1"  and "todate" to real words in your script.

Wishes
hnikou

(in reply to aerialv)
 
 
Post #: 6
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> pls help! pls help! Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts