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
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!
 
When You Register, These Ads Go Away!
Old 02-12-2006, 05:42 PM Re: Difference in "get" & "set" in Date Object Methods
vangogh's Avatar
Post Impressionist

Posts: 8,923
Name: Steven Bradley
Location: Boulder, Colorado
'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 | Van SEO Design
l Tips On Marketing, SEO, Design, and Development | TheVanBlog
l Custom WordPress Themes
| Small Business Forum

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
Super Moderator

Latest Blog Post:
Am I impressed or what?
Posts: 14,845
Location: Blackpool. UK
well,
getDate will Get the date and setDate will Set the date
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is offline
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
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

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

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