Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
getting weekday from date() / asp / vbscript
Old 05-27-2005, 05:33 AM getting weekday from date() / asp / vbscript
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Hi All,

Im trying a retrieve the weekday from date()

im doing like this :

fullDate = FormatDateTime(dayRS("replydate"),1)
pos=inStr(fullDate,",")
getWeekday = mid(fullDate,0,pos)

But getting the below error :

Microsoft VBScript runtime error '800a0005'

Invalid procedure call or argument: 'mid'

/mindex.asp, line 40


Can anyone help?
Thanks

Steve
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
 
Register now for full access!
Old 05-27-2005, 05:57 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
Code:
WeekDayName(WeekDay(Date))
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?

Last edited by chrishirst; 05-27-2005 at 05:57 AM.. Reason: missed code tags
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-27-2005, 05:59 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
oh . Thanks
lol

Thats obviously the way although i would have aslo like to know what is wrong with my code. Can you help there.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Old 05-27-2005, 06:05 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
strings start at 1 not 0
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-27-2005, 06:10 AM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
also your code will not work because there are no commas in a formatted date. It is a space seperated string.
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-27-2005, 06:16 AM
numbenator's Avatar
Webmaster Talker

Posts: 523
Location: London
Trades: 0
Great. Thanks very much.
__________________

Please login or register to view this content. Registration is FREE
numbenator is offline
Reply With Quote
View Public Profile Visit numbenator's homepage!
 
Reply     « Reply to getting weekday from date() / asp / vbscript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25757 seconds with 12 queries