set
英[set] 美[sɛt]
vt. Set; place, arrange; put in a certain situation; place tableware
vi. Setting off; setting off; condensation
n.Gathering; a set; a set; a TV set
adj. Fixed; located in...; stubborn; arranged The
third person singular: sets plural: sets present participle: setting past tense: set past participle: set
date
英[deɪt] Beauty [det]
n. Date; date, day; era, age; (of the date palm tree common in North Africa and West Asia) date palm
vt. Outdated; make... appear old; Show the age (or age) of...; identify the age of... Record the date; mark (or indicate) the date
Third person singular: dates Plural: dates Present participle: dating Past tense: dated Past participle: dated
javascript setDate() method syntax
Function: is used to set a certain day of the month.
Syntax: dateObject.setDate(day)
Parameters: day Required. A numerical value (1 ~ 31) representing a day of the month.
Returns: The millisecond representation of the adjusted date. Before ECMAScript was standardized, this method returned nothing.
Note: This method is always used in conjunction with a Date object.
javascript setDate() method example
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <script type="text/javascript"> var d = new Date() d.setDate(15) document.write(d) </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance