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.

JavaScript Forum


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



Reply
Difference in "get" & "set" in Date Object Methods
Old 02-12-2006, 05:30 PM Difference in "get" & "set" in Date Object Methods
Experienced Talker

Posts: 32
Location: Indiana, USA
Trades: 0
When writing a script to do calculations on a date, what is the difference in the different methods? Such as "dateObj.getDate()" and "dateObj.setDate()". In looking at a table listing the different methods, it doesn't really explain the difference between the "get" and "set". At least not in the chapter I'm currently working in.
__________________
They have computers, and they may have other weapons of mass destruction. - - Janet Reno
Smoking Man is offline
Reply With Quote
View Public Profile Visit Smoking Man's homepage!
 
 
Register now for full access!
Old 02-12-2006, 05:42 PM Re: Difference in "get" & "set" in Date Object Methods
vangogh's Avatar
Post Impressionist

Posts: 10,688
Name: Steven Bradley
Location: Boulder, Colorado
Trades: 0
'get' will return the current value of date and 'set' will allow you to set a new value. That's pretty typical of all 'get' and 'set' functions.
__________________
l Search Engine Friendly Web Design |
Please login or register to view this content. Registration is FREE

l Tips On Marketing, SEO, Design, and Development |
Please login or register to view this content. Registration is FREE

l
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by vangogh; 02-12-2006 at 05:48 PM..
vangogh is offline
Reply With Quote
View Public Profile Visit vangogh's homepage!
 
Old 02-12-2006, 05:42 PM Re: Difference in "get" & "set" in Date Object Methods
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,520
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
well,
getDate will Get the date and setDate will Set the date
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 02-12-2006, 05:50 PM Re: Difference in "get" & "set" in Date Object Methods
Experienced Talker

Posts: 32
Location: Indiana, USA
Trades: 0
I thought that was probably the case, but I hate to assume anything. That usually just gets me in trouble
__________________
They have computers, and they may have other weapons of mass destruction. - - Janet Reno
Smoking Man is offline
Reply With Quote
View Public Profile Visit Smoking Man's homepage!
 
Reply     « Reply to Difference in "get" & "set" in Date Object Methods
 

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.41632 seconds with 12 queries