file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
javascript/reference/global_objects/date/getfullyear/index.md
JavaScript - Global Objects - Date - getFullYear - Examples - Using getFullYear(): The `fullYear` variable has value `1995`, based on the value of the `Date` object `xmas95`. Example: const xmas95 = new Date("1995-12-25T23:15:30"); const fullYear = xmas95.getFullYear(); console.log(fullYear); // 1995
[ -1.180341362953186, 0.0441446527838707, -1.476130485534668, 0.7881677746772766, -0.4246405363082886, -2.4286105632781982, -0.34754425287246704, 0.7589341402053833, 0.09918543696403503, -0.04706157371401787, 0.06496082991361618, 0.10435444116592407, -0.1598958969116211, 0.37418970465660095,...
javascript/reference/global_objects/date/settime/index.md
JavaScript - Global Objects - Date - setTime: The `setTime()` method of `Date` instances changes the timestamp for this date, which is the number of milliseconds since the epoch, defined as the midnight at the beginning of January 1, 1970, UTC. Example: const launchDate = new Date("July 1, 1999, 12:00:00"); const fu...
[ -0.8503010272979736, -0.34279847145080566, -1.2589863538742065, 0.527332067489624, 0.00391923263669014, -1.3529388904571533, -0.05660651624202728, 0.802862286567688, -0.20947383344173431, 0.2801051437854767, -0.31653904914855957, 0.485376238822937, 0.12389373779296875, 0.1963171511888504, ...
javascript/reference/global_objects/date/settime/index.md
JavaScript - Global Objects - Date - setTime - Syntax: Example: setTime(timeValue)
[ -0.3421948254108429, 0.4307134449481964, -0.6752866506576538, 0.37465769052505493, -0.69200599193573, -1.7067782878875732, 0.3359803259372711, 1.1909258365631104, -0.14981845021247864, -0.5739402174949646, 0.24643512070178986, 0.2068091183900833, 0.687294602394104, -0.00826773326843977, ...
javascript/reference/global_objects/date/settime/index.md
JavaScript - Global Objects - Date - setTime - Syntax - Parameters: - `timeValue`: An integer representing the new timestamp — the number of milliseconds since the midnight at the beginning of January 1, 1970, UTC.
[ -0.4632136821746826, 0.04648086428642273, -0.7917020916938782, 0.13668560981750488, 0.07792165130376816, -1.5995216369628906, 0.15822188556194305, 1.2367665767669678, 0.09754306823015213, -0.09616117179393768, -0.1905052661895752, 0.008741558529436588, 0.3283233344554901, 0.389274299144744...
javascript/reference/global_objects/date/settime/index.md
JavaScript - Global Objects - Date - setTime - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `timeValue` is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -1.018272042274475, -0.08366257697343826, -0.5956466794013977, 0.22635968029499054, -0.40079376101493835, -1.7012042999267578, 0.233642116189003, 1.213728427886963, -1.083676815032959, 0.41802898049354553, -0.3282184302806854, 0.3637557923793793, 0.022077860310673714, 0.4232467710971832, ...
javascript/reference/global_objects/date/settime/index.md
JavaScript - Global Objects - Date - setTime - Examples - Using setTime(): Example: const theBigDay = new Date("1999-07-01"); const sameAsBigDay = new Date(); sameAsBigDay.setTime(theBigDay.getTime());
[ -0.9155688285827637, 0.6554100513458252, -1.2219514846801758, 0.7547303438186646, -0.37907150387763977, -1.7144068479537964, -0.1547548472881317, 0.42972439527511597, -0.3059951364994049, -0.06117246299982071, -0.2620071470737457, 0.11984095722436905, 0.16060200333595276, -0.08850002288818...
javascript/reference/global_objects/date/getday/index.md
JavaScript - Global Objects - Date - getDay: The `getDay()` method of `Date` instances returns the day of the week for this date according to local time, where 0 represents Sunday. For the day of the month, see `Date.prototype.getDate()`. Example: const birthday = new Date("August 19, 1975 23:15:30"); const day1 = b...
[ -0.8894888758659363, -0.39130231738090515, -1.2669048309326172, -0.26970964670181274, -0.29083165526390076, -2.3550326824188232, -0.6922405362129211, -0.06513281166553497, -0.14017890393733978, 0.039903219789266586, -0.22822079062461853, -0.025578750297427177, -0.11344314366579056, 0.25233...
javascript/reference/global_objects/date/getday/index.md
JavaScript - Global Objects - Date - getDay - Syntax: Example: getDay()
[ -0.5796247124671936, -0.10521652549505234, -1.0483185052871704, -0.5033239126205444, -0.8306525349617004, -2.3205549716949463, -0.04881484806537628, 0.4748649001121521, -0.5685445070266724, -0.638670027256012, -0.12535017728805542, -0.020700853317975998, -0.08231349289417267, 0.00585493352...
javascript/reference/global_objects/date/getday/index.md
JavaScript - Global Objects - Date - getDay - Syntax - Parameters: None.
[ -0.6656413078308105, 0.07456859201192856, -1.221631407737732, -0.8048977851867676, -0.7938091158866882, -1.706392765045166, 0.4566330015659332, 0.6474754214286804, -0.6148971319198608, -0.6228620409965515, -0.598336935043335, -0.6007938981056213, 0.13221365213394165, 0.05547897890210152, ...
javascript/reference/global_objects/date/getday/index.md
JavaScript - Global Objects - Date - getDay - Syntax - Return value: An integer, between 0 and 6, representing the day of the week for the given date according to local time: 0 for Sunday, 1 for Monday, 2 for Tuesday, and so on. Returns `NaN` if the date is invalid.
[ -1.1757644414901733, -0.15307067334651947, -0.20466838777065277, -0.5611669421195984, -0.592530369758606, -1.9852238893508911, -0.0074356854893267155, 0.14110060036182404, -0.9892628788948059, 0.04287799820303917, -0.691827118396759, 0.6011037230491638, -0.28617632389068604, 0.104045860469...
javascript/reference/global_objects/date/getday/index.md
JavaScript - Global Objects - Date - getDay - Description: The return value of `getDay()` is zero-based, which is useful for indexing into arrays of days, for example: Example: const valentines = new Date("1995-02-14"); const day = valentines.getDay(); const dayNames = ["Sunday", "Monday", "Tuesday" /* , … */]; con...
[ -0.9991302490234375, -0.4624313414096832, -1.031628131866455, 1.0254796743392944, -0.2774554491043091, -0.9802578091621399, 0.2555946409702301, -0.009846942499279976, -0.3465724289417267, 0.4122752845287323, -0.5900480151176453, 0.15657474100589752, 0.756089985370636, 0.2565549612045288, ...
javascript/reference/global_objects/date/getday/index.md
JavaScript - Global Objects - Date - getDay - Examples - Using getDay(): The `weekday` variable has value `1`, based on the value of the `Date` object `xmas95`, because December 25, 1995 is a Monday. Example: const xmas95 = new Date("1995-12-25T23:15:30"); const weekday = xmas95.getDay(); console.log(weekday); // 1
[ -1.8152422904968262, -0.547038197517395, -1.249233365058899, -0.04182656481862068, -0.18268997967243195, -1.8097220659255981, -0.16333816945552826, 0.4330193102359772, -0.04102952405810356, -0.13215692341327667, 0.14503362774848938, -0.04075087234377861, 0.3473297953605652, -0.308217197656...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse: The `Date.parse()` static method parses a string representation of a date, and returns the date's timestamp. Example: // Standard date-time string format const unixTimeZero = Date.parse("1970-01-01T00:00:00Z"); // Non-standard format resembling toUTCString() const javaScri...
[ -1.129696249961853, 0.2822408378124237, -1.063132882118225, 0.46148794889450073, 0.647803783416748, -1.399855613708496, 0.654671847820282, 0.33123937249183655, -0.7282440066337585, 0.290234237909317, -0.29599297046661377, 0.1654554158449173, 0.19920460879802704, 0.0316365510225296, -0.14...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Syntax: Example: Date.parse(dateString)
[ -0.5299379229545593, 0.27283522486686707, -0.7101824879646301, 0.03980191424489021, -0.2959611415863037, -2.1012227535247803, 0.779655396938324, 0.6398178935050964, -0.5863029956817627, -0.47752586007118225, -0.2160910815000534, 0.411743700504303, 0.2093755006790161, 0.11588631570339203, ...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Syntax - Parameters: - `dateString`: A string in the date time string format. See the linked reference for caveats on using different formats.
[ -0.4846234917640686, -0.07707029581069946, -1.207446813583374, -0.17927218973636627, 0.34168434143066406, -2.2452194690704346, 0.3527648150920868, 0.9404577016830444, -0.26133567094802856, -0.2137586921453476, -0.44844967126846313, -0.11362013965845108, 0.22309212386608124, 0.1826004981994...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Syntax - Return value: A number representing the timestamp of the given date. If `dateString` fails to be parsed as a valid date, `NaN` is returned.
[ -0.42864882946014404, -0.29399213194847107, -0.46220138669013977, -0.15036295354366302, -0.6104755997657776, -1.6432121992111206, 0.8482171297073364, 0.9283664226531982, -1.2760449647903442, 0.4981365203857422, -0.7396335601806641, 0.6560491323471069, -0.2275240421295166, 0.693559169769287...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Description: This function is useful for setting date values based on string values, for example in conjunction with the `setTime()` method. The formats that `parse()` can handle are not explicitly specified, but there are a few `invariants`: - The date time string format...
[ -0.7302250862121582, 0.40821602940559387, -0.3266146183013916, 1.3872789144515991, 0.6224475502967834, -0.38788238167762756, 0.32507577538490295, 0.5456650853157043, -0.7392974495887756, -0.17970208823680878, -0.28917503356933594, -0.5597606301307678, 0.5499768257141113, 0.3192322552204132...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Examples - Using Date.parse(): The following calls all return `1546300800000`. The first will imply UTC time because it's date-only, and the others explicitly specify the UTC timezone. Example: Date.parse("2019-01-01"); Date.parse("2019-01-01T00:00:00.000Z"); Date.parse("...
[ -0.8698235154151917, 0.9880105257034302, -1.271062970161438, 0.7493694424629211, -0.07548551261425018, -1.2225885391235352, -0.14893002808094025, -0.7555621266365051, -0.40164893865585327, 0.17279919981956482, 0.057006292045116425, 0.5076813697814941, 0.10184121876955032, -0.09201354533433...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Examples - toString() and toUTCString() formats: Apart from the standard date time string format, the `toString()` and `toUTCString()` formats are supported: Example: // toString() format Date.parse("Thu Jan 01 1970 00:00:00 GMT-0500 (Eastern Standard Time)"); // 18000000...
[ -0.5792457461357117, 0.9486570954322815, -1.027274250984192, 0.011455683037638664, 0.31820017099380493, -2.7596633434295654, -0.18561150133609772, -0.3909265100955963, 0.13543032109737396, -0.4033959209918976, -0.06126159057021141, 0.1591005027294159, 0.17710143327713013, -0.05305914953351...
javascript/reference/global_objects/date/parse/index.md
JavaScript - Global Objects - Date - parse - Examples - Non-standard date strings: Note: This section contains implementation-specific behavior that may be inconsistent across browsers or different versions of browsers. It is not meant to be a comprehensive browser compatibility table and you should always conduct you...
[ -0.9876366853713989, 0.20948079228401184, -2.116856813430786, 0.4705936908721924, 0.025439424440264702, -0.9263801574707031, 0.49246746301651, -0.09568887948989868, -0.24227480590343475, 0.5731160640716553, -0.4188949167728424, 0.004765849560499191, -0.4503985047340393, 0.24184852838516235...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date: The `Date()` constructor creates `Date` objects. When called as a function, it returns a string representing the current time. Example: const date1 = new Date("December 17, 1995 03:24:00"); // Sun Dec 17 1995 03:24:00 GMT... const date2 = new Date("1995-12-17T03:24:00"); // Sun D...
[ -0.7429707050323486, -0.31584790349006653, -1.4569734334945679, 0.8185545802116394, 0.17155678570270538, -1.9691712856292725, -0.9401217699050903, 0.8419756889343262, -0.381828635931015, 0.3715231716632843, -0.5391594767570496, 0.3513713777065277, -0.2063611000776291, -0.18275535106658936,...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax: Example: new Date() new Date(value) new Date(dateString) new Date(dateObject) new Date(year, monthIndex) new Date(year, monthIndex, day) new Date(year, monthIndex, day, hours) new Date(year, monthIndex, day, hours, minutes) new Date(year, monthIndex, day, hours, minutes, ...
[ -0.6815778613090515, 0.07428350299596786, -0.8162131905555725, -0.23580819368362427, -0.22101911902427673, -1.9262434244155884, -0.31785401701927185, 0.6169140338897705, -0.3806774914264679, -0.3926806151866913, -0.25427934527397156, 0.28175127506256104, 0.32513102889060974, -0.06176195666...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Parameters: There are five basic forms for the `Date()` constructor:
[ 0.28243547677993774, 0.0375656895339489, -0.7712386846542358, 0.4924800992012024, 0.07377752661705017, -2.0257155895233154, 0.25723177194595337, 0.7384749054908752, -0.6472337245941162, -0.2512017786502838, -0.4546239376068115, -0.13354317843914032, -0.0512375570833683, -0.4831340610980987...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Parameters - No parameters: When no parameters are provided, the newly-created `Date` object represents the current date and time as of the time of instantiation. The returned date's timestamp is the same as the number returned by `Date.now()`.
[ -0.6595295667648315, -0.3235669732093811, -0.9278868436813354, 0.5963183641433716, -0.33321458101272583, -1.8529192209243774, 0.5888098478317261, 1.40389084815979, -0.33754318952560425, -0.15660028159618378, -0.053706321865320206, -0.31358951330184937, 0.2554916739463806, 0.767662048339843...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Parameters - Time value or timestamp number: - `value`: An integer value representing the timestamp (the number of milliseconds since midnight at the beginning of January 1, 1970, UTC — a.k.a. the epoch).
[ 0.056666940450668335, -0.3155485987663269, -0.6725627779960632, -0.09607043117284775, -0.17409375309944153, -1.8614344596862793, 0.5743821859359741, 0.9782279133796692, -0.07178953289985657, -0.16144104301929474, -0.12300474941730499, 0.3996916711330414, 0.22665870189666748, -0.07871087640...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Parameters - Date string: - `dateString`: A string value representing a date, parsed and interpreted using the same algorithm implemented by `Date.parse()`. See date time string format for caveats on using different formats.
[ -0.6318580508232117, -0.32114970684051514, -1.1204522848129272, -0.20145577192306519, 0.28137579560279846, -2.4891905784606934, 0.3763599395751953, 0.8492941856384277, -0.19260041415691376, -0.20478522777557373, -0.33816617727279663, -0.10116330534219742, 0.3680827021598816, 0.389527827501...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Parameters - Date object: - `dateObject`: An existing `Date` object. This effectively makes a copy of the existing `Date` object with the same date and time. This is equivalent to `new Date(dateObject.valueOf())`, except the `valueOf()` method is not called. When one para...
[ -0.25385749340057373, -0.07259121537208557, -1.3751567602157593, -0.08806231617927551, 0.04637802019715309, -1.9705631732940674, 0.9656379222869873, 0.9741756319999695, -0.16041116416454315, -0.35499313473701477, -1.063014030456543, -0.10230561345815659, 0.19587866961956024, 0.417647719383...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Parameters - Individual date and time component values: Given at least a year and month, this form of `Date()` returns a `Date` object whose component values (year, month, day, hour, minute, second, and millisecond) all come from the following parameters. Any missing field...
[ -0.5880157947540283, 0.36481329798698425, -0.2975175380706787, 1.0277124643325806, 0.25892311334609985, -1.0402650833129883, 0.325691282749176, 0.933902382850647, -0.5487766861915588, 0.3809159994125366, -0.7091599106788635, -0.32677289843559265, -0.2627415359020233, 0.20240268111228943, ...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Syntax - Return value: Calling `new Date()` (the `Date()` constructor) returns a `Date` object. If called with an invalid date string, or if the date to be constructed will have a timestamp less than `-8,640,000,000,000,000` or greater than `8,640,000,000,000,000` milliseconds, it ...
[ -0.9602513909339905, 0.1657586395740509, -0.5877888202667236, 0.5763610005378723, 0.2969608008861542, -1.6540766954421997, 0.2027917206287384, -0.15333782136440277, -1.566389560699463, 0.5552022457122803, -0.23745489120483398, 0.3418455421924591, 0.25436022877693176, 0.2161574810743332, ...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Description - Reduced time precision: To offer protection against timing attacks and fingerprinting, the precision of `new Date()` might get rounded depending on browser settings. In Firefox, the `privacy.reduceTimerPrecision` preference is enabled by default and defaults to 2ms. Y...
[ -1.4125587940216064, 0.05947194620966911, -1.0944467782974243, 0.4285993278026581, -0.10837062448263168, -1.387125015258789, 0.33312052488327026, -0.03975464776158333, -0.402925580739975, 0.9399588704109192, -0.7521507740020752, 0.11889936774969101, -0.720899224281311, 0.08538220822811127,...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Examples - Several ways to create a Date object: The following examples show several ways to create JavaScript dates: Example: const today = new Date(); const birthday = new Date("December 17, 1995 03:24:00"); // DISCOURAGED: may not work in all runtimes const birthday = new Date...
[ -0.04853983595967293, -0.49162083864212036, -0.9673410058021545, 0.8322215676307678, -0.04879811406135559, -1.3882644176483154, 0.06861044466495514, 0.18268539011478424, -0.32541942596435547, 0.10620026290416718, -0.025544553995132446, 0.45342540740966797, -0.34021860361099243, -0.32853853...
javascript/reference/global_objects/date/date/index.md
JavaScript - Global Objects - Date - Examples - Passing a non-Date, non-string, non-number value: If the `Date()` constructor is called with one parameter which is not a `Date` instance, it will be coerced to a primitive and then checked whether it's a string. For example, `new Date(undefined)` is different from `new ...
[ -0.10710155218839645, 0.05439551919698715, -0.726409912109375, 0.7973539233207703, 0.51041579246521, -0.9959399104118347, 0.5704713463783264, 0.42024096846580505, -1.1557687520980835, 0.6293803453445435, 0.041795916855335236, 0.17077401280403137, 0.39240407943725586, -0.4022893011569977, ...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString: The `toUTCString()` method of `Date` instances returns a string representing this date in the RFC 7231 format, with negative years allowed. The timezone is always UTC. `toGMTString()` is an alias of this method. Example: const event = new Date("14 Jun 2017 00:00:00 P...
[ -1.211377501487732, 0.32040610909461975, -0.8586142659187317, 0.4405359923839569, 0.31506192684173584, -2.3557589054107666, -0.6911529898643494, -0.30827298760414124, -0.05743398517370224, 0.39618805050849915, -0.5162724852561951, 0.7574450969696045, -0.025626763701438904, 0.71357464790344...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString - Syntax: Example: toUTCString()
[ -0.7925812005996704, 0.7332743406295776, -1.0683517456054688, 0.10457900911569595, -0.5303967595100403, -2.699101448059082, -0.1429876685142517, 0.4961996078491211, -0.15969564020633698, -0.3713155686855316, 0.3221897780895233, 0.5612577199935913, -0.18764574825763702, -0.18187661468982697...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString - Syntax - Parameters: None.
[ -0.5340679287910461, 0.720675528049469, -1.2308639287948608, -0.2862430810928345, -0.565600574016571, -1.89894437789917, 0.3755562901496887, 0.6445639729499817, -0.15586034953594208, -0.4899582862854004, -0.21974459290504456, -0.11283224076032639, -0.06939762830734253, -0.05262137204408645...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString - Syntax - Return value: A string representing the given date using the UTC time zone (see description for the format). Returns `"Invalid Date"` if the date is invalid.
[ -0.8239315152168274, 0.4077751934528351, -1.1495224237442017, 0.39033299684524536, 0.0016929093981161714, -2.2812929153442383, 0.3784446716308594, 0.4146311581134796, -0.29328757524490356, 0.40502995252609253, -0.09881918877363205, 0.9661540985107422, -0.04110011085867882, 0.48808234930038...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString - Description: The value returned by `toUTCString()` is a string in the form `Www, dd Mmm yyyy HH:mm:ss GMT`, where: - Format String: `Www`, Description: Day of week, as three letters (e.g., `Sun`, `Mon`) - Format String: `dd`, Description: Day of month, as two digits ...
[ -1.4658457040786743, 0.6347280740737915, -0.9374977350234985, -0.6791377663612366, 0.17914117872714996, -2.128000259399414, -0.3420904576778412, -0.3914893865585327, 0.1566540151834488, 0.2532728910446167, -0.10133881866931915, 0.728377640247345, -0.10426004976034164, 0.05824054032564163, ...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString - Description - Aliasing: JavaScript's `Date` API was inspired by Java's `java.util.Date` library (while the latter had become de facto legacy since Java 1.1 in 1997). In particular, the Java `Date` class had a method called `toGMTString` — which was poorly named, becau...
[ -1.779199481010437, 0.5184120535850525, -1.276577115058899, 0.317900151014328, 0.2449464499950409, -2.7243778705596924, -0.3254312574863434, -0.36177700757980347, -1.1064153909683228, 0.012758190743625164, -0.3081493675708771, 0.2599753439426422, -0.7507390975952148, 0.24402053654193878, ...
javascript/reference/global_objects/date/toutcstring/index.md
JavaScript - Global Objects - Date - toUTCString - Examples - Using toUTCString(): Example: const d = new Date(0); console.log(d.toUTCString()); // 'Thu, 01 Jan 1970 00:00:00 GMT'
[ -0.43120697140693665, 0.6059891581535339, -1.329775094985962, 0.2239822894334793, -0.11671043187379837, -2.3347742557525635, -0.2541543245315552, -0.2837591767311096, 0.31106501817703247, -0.4308696389198303, -0.005954183172434568, 0.3371722996234894, 0.05295121297240257, 0.090749688446521...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString: The `toLocaleDateString()` method of `Date` instances returns a string with a language-sensitive representation of the date portion of this date in the local timezone. In implementations with `Intl.DateTimeFormat` API support, this method delegates to `Intl.Date...
[ -0.9153167009353638, -0.07155212759971619, -0.6204713582992554, 0.3645079731941223, 0.19246572256088257, -1.903768539428711, -0.2995963990688324, -0.5061806440353394, -0.44176220893859863, 0.22927016019821167, -0.1689428836107254, 0.7229469418525696, 0.332114040851593, 0.6863901615142822, ...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Syntax: Example: toLocaleDateString() toLocaleDateString(locales) toLocaleDateString(locales, options)
[ -0.7789989709854126, 0.6159332394599915, -0.30205294489860535, 0.101050965487957, -0.38174647092819214, -2.3138427734375, 0.3118722438812256, 0.5472782850265503, -0.29290908575057983, -0.8401464819908142, 0.2541325092315674, 0.43437597155570984, 0.2860322594642639, -0.14306245744228363, ...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Syntax - Parameters: The `locales` and `options` parameters customize the behavior of the function and let applications specify the language whose formatting conventions should be used. In implementations that support the `Intl.DateTimeFormat` API, these param...
[ -0.7347203493118286, 0.13711559772491455, -0.8056069612503052, 0.5494443774223328, 0.014765446074306965, -1.8067803382873535, 1.0612905025482178, -0.4908432066440582, -0.3870234489440918, 0.31333398818969727, -0.9418006539344788, 0.1918029934167862, 0.3375621438026428, 0.3501625657081604, ...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Syntax - Return value: A string representing the date portion of the given date according to language-specific conventions. In implementations with `Intl.DateTimeFormat`, this is equivalent to `new Intl.DateTimeFormat(locales, options).format(date)`, where `op...
[ -0.9737005233764648, 0.4025137424468994, 0.1811872273683548, 0.9835433959960938, 0.9557464718818665, -1.1845329999923706, 1.0428261756896973, 0.6830779314041138, -1.17024827003479, 0.22905351221561432, -0.45251527428627014, -0.1583947092294693, -0.13616734743118286, 0.2580207884311676, 0...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Examples - Using toLocaleDateString(): Basic use of this method without specifying a `locale` returns a formatted string in the default locale and with default options. Example: const date = new Date(Date.UTC(2012, 11, 12, 3, 0, 0)); // toLocaleDateString() ...
[ -1.130628228187561, -0.030288057401776314, -1.090064287185669, 0.6421610713005066, -0.07170429080724716, -1.8065392971038818, 0.1825123280286789, -0.04611927643418312, -0.1749764233827591, -0.37429308891296387, 0.16106320917606354, 0.8354894518852234, 0.37722456455230713, -0.18410734832286...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Examples - Checking for support for locales and options parameters: The `locales` and `options` parameters may not be supported in all implementations, because support for the internationalization API is optional, and some systems may not have the necessary dat...
[ -1.0041723251342773, -0.05277606099843979, -0.6368656754493713, 0.4702075719833374, -0.24786633253097534, -1.6186866760253906, 0.9744095802307129, -0.503932774066925, -0.6372883319854736, -0.09545823931694031, -0.14805437624454498, -0.3098987936973572, 0.9200686812400818, 0.282707959413528...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Examples - Using locales: This example shows some of the variations in localized date formats. In order to get the format of the language used in the user interface of your application, make sure to specify that language (and possibly some fallback languages) u...
[ -0.726952314376831, -0.30249688029289246, -1.6183030605316162, -0.021658211946487427, -0.05592934787273407, -1.4801510572433472, -0.03017357364296913, -0.600288987159729, -0.6493731141090393, -0.08541402965784073, -0.15186302363872528, 0.5499151349067688, 0.5103766918182373, 0.794138967990...
javascript/reference/global_objects/date/tolocaledatestring/index.md
JavaScript - Global Objects - Date - toLocaleDateString - Examples - Using options: The results provided by `toLocaleDateString()` can be customized using the `options` parameter: Example: const date = new Date(Date.UTC(2012, 11, 20, 3, 0, 0)); // Request a weekday along with a long date const options = { weekday...
[ -1.3009573221206665, 0.16357694566249847, -1.216552972793579, 0.6752955317497253, -0.22404587268829346, -1.8557795286178589, -0.2584454119205475, -0.7332131266593933, -0.06981445103883743, 0.19441327452659607, 0.2064819186925888, 0.9632705450057983, 0.727665364742279, 0.2993911802768707, ...
javascript/reference/global_objects/date/setutchours/index.md
JavaScript - Global Objects - Date - setUTCHours: The `setUTCHours()` method of `Date` instances changes the hours, minutes, seconds, and/or milliseconds for this date according to universal time. Example: const event = new Date("August 19, 1975 23:15:30 GMT-3:00"); console.log(event.toUTCString()); // Expected out...
[ 0.005031056236475706, -0.14779172837734222, -1.5624842643737793, 0.9408291578292847, -0.6876062154769897, -1.676526427268982, -0.6053131222724915, 0.42857933044433594, 0.28685101866722107, -0.15126711130142212, -0.15357381105422974, 0.4410807192325592, 0.16439670324325562, 0.05770697072148...
javascript/reference/global_objects/date/setutchours/index.md
JavaScript - Global Objects - Date - setUTCHours - Syntax: Example: setUTCHours(hoursValue) setUTCHours(hoursValue, minutesValue) setUTCHours(hoursValue, minutesValue, secondsValue) setUTCHours(hoursValue, minutesValue, secondsValue, msValue)
[ 0.31709301471710205, 0.5296842455863953, -1.2660800218582153, 1.0969288349151611, -0.7694075703620911, -1.9170117378234863, -0.13636833429336548, 0.5860429406166077, 0.36834651231765747, -0.8281481862068176, 0.03198886662721634, 0.45515525341033936, 0.5670770406723022, -0.2351619154214859,...
javascript/reference/global_objects/date/setutchours/index.md
JavaScript - Global Objects - Date - setUTCHours - Syntax - Parameters: - `hoursValue`: An integer between 0 and 23 representing the hours. - `minutesValue` (optional): An integer between 0 and 59 representing the minutes. - `secondsValue` (optional): An integer between 0 and 59 representing the seconds. If you specif...
[ -0.6395374536514282, -0.0740826353430748, -0.6593271493911743, 0.27583563327789307, -0.3918572664260864, -1.5414628982543945, -0.16256485879421234, -0.020175648853182793, 0.25430765748023987, -0.04565409570932388, -0.23257151246070862, 0.0018472642404958606, 0.6717726588249207, -0.35757076...
javascript/reference/global_objects/date/setutchours/index.md
JavaScript - Global Objects - Date - setUTCHours - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If a parameter is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.49606266617774963, 0.022847093641757965, -0.8993911743164062, 0.6926944255828857, -0.47898396849632263, -1.7882789373397827, 0.2973523736000061, 0.9277598857879639, -0.97197425365448, 0.46449726819992065, -0.4285329580307007, 0.5179405212402344, 0.1365341991186142, 0.3561696708202362, ...
javascript/reference/global_objects/date/setutchours/index.md
JavaScript - Global Objects - Date - setUTCHours - Description: If you do not specify the `minutesValue`, `secondsValue`, and `msValue` parameters, the values returned from the `getUTCMinutes()`, `getUTCSeconds()`, and `getUTCMilliseconds()` methods are used. If a parameter you specify is outside of the expected rang...
[ -0.9989157915115356, 0.2682286500930786, -1.5651787519454956, 1.0339699983596802, -0.3710915148258209, -1.5472419261932373, 0.23991340398788452, 0.09361563622951508, 0.03958957642316818, -0.09446551650762558, 0.008561544120311737, 0.32825857400894165, 0.28593796491622925, -0.09219992905855...
javascript/reference/global_objects/date/setutchours/index.md
JavaScript - Global Objects - Date - setUTCHours - Examples - Using setUTCHours(): Example: const theBigDay = new Date(); theBigDay.setUTCHours(8);
[ -0.24868151545524597, 0.3100438416004181, -1.4489412307739258, 1.1848664283752441, -0.7122300863265991, -1.522025465965271, -0.43348297476768494, -0.06651406735181808, -0.1711420863866806, -0.6818124651908875, -0.4244656264781952, 0.12747183442115784, 0.2801591455936432, 0.0391419380903244...
javascript/reference/global_objects/date/totemporalinstant/index.md
JavaScript - Global Objects - Date - toTemporalInstant: The `toTemporalInstant()` method of `Date` instances returns a new `Temporal.Instant` object with the same `epochMilliseconds` value as this date's timestamp. Use this method to convert legacy `Date` values to the `Temporal` API, then further convert it to other...
[ -1.522449016571045, 0.20884250104427338, -0.2614453434944153, 0.45955199003219604, 0.08410321176052094, -2.4145052433013916, 0.0019661644473671913, 0.7439650893211365, -0.6461652517318726, 0.32843735814094543, -0.6298418045043945, 0.2733149826526642, 0.6208669543266296, 0.3760789632797241,...
javascript/reference/global_objects/date/totemporalinstant/index.md
JavaScript - Global Objects - Date - toTemporalInstant - Syntax: Example: toTemporalInstant()
[ -1.0556433200836182, 0.9538202881813049, -0.03886553645133972, 0.31389808654785156, -0.5669463276863098, -2.387741804122925, -0.5993027687072754, 1.1870403289794922, -0.6203318238258362, -0.052580732852220535, -0.3154709041118622, 0.19935889542102814, 0.13851642608642578, 0.136662811040878...
javascript/reference/global_objects/date/totemporalinstant/index.md
JavaScript - Global Objects - Date - toTemporalInstant - Syntax - Parameters: None.
[ -0.8726730942726135, 0.8820257782936096, -0.2688037157058716, -0.282899409532547, -0.7096267342567444, -1.820931315422058, -0.15148837864398956, 1.270447850227356, -0.5814922451972961, -0.2524489760398865, -0.6771457195281982, -0.2958485186100006, 0.45972204208374023, 0.03108862042427063, ...
javascript/reference/global_objects/date/totemporalinstant/index.md
JavaScript - Global Objects - Date - toTemporalInstant - Syntax - Return value: A new `Temporal.Instant` object with the same `epochMilliseconds` value as this date's timestamp. Its microsecond and nanosecond components are always `0`.
[ -1.1893309354782104, 0.2371354103088379, -0.12286632508039474, 0.24739646911621094, -0.06819646060466766, -1.963505744934082, 0.07309461385011673, 1.0778638124465942, -0.4886336922645569, 0.5281165242195129, -0.851938009262085, 0.4515000879764557, 0.32067063450813293, 0.5017828941345215, ...
javascript/reference/global_objects/date/totemporalinstant/index.md
JavaScript - Global Objects - Date - toTemporalInstant - Syntax - Exceptions: - `RangeError`: Thrown if the date is invalid (it has a timestamp of `NaN`).
[ -1.0347620248794556, 0.48818615078926086, 0.23489677906036377, 0.1812811940908432, -0.263876736164093, -2.6262097358703613, -0.3507383167743683, 1.024073839187622, -1.278281331062317, 0.3990129828453064, -0.6753237247467041, -0.1186971664428711, -0.4006578326225281, -0.15300352871418, 0....
javascript/reference/global_objects/date/totemporalinstant/index.md
JavaScript - Global Objects - Date - toTemporalInstant - Examples - Using toTemporalInstant(): Example: const legacyDate = new Date("2021-07-01T12:34:56.789Z"); const instant = legacyDate.toTemporalInstant(); // Further convert it to other objects const zdt = instant.toZonedDateTimeISO("UTC"); const date = zdt.toPla...
[ -1.5982284545898438, 1.3252445459365845, 0.46842628717422485, 0.38065460324287415, -0.4364694058895111, -2.5217177867889404, -0.9804603457450867, 0.08041401952505112, -0.35488361120224, 0.13290932774543762, -0.07224304974079132, 0.2379513680934906, -0.0894966796040535, 0.13622485101222992,...
javascript/reference/global_objects/date/getdate/index.md
JavaScript - Global Objects - Date - getDate: The `getDate()` method of `Date` instances returns the day of the month for this date according to local time. Example: const birthday = new Date("August 19, 1975 23:15:30"); const date = birthday.getDate(); console.log(date); // Expected output: 19
[ -0.021183893084526062, -0.4214692711830139, -1.7298706769943237, -0.068293496966362, -0.3141929805278778, -1.9062299728393555, -0.36511510610580444, -0.01927691139280796, -0.3363841772079468, 0.1865829974412918, -0.160635843873024, 0.16920119524002075, -0.1977708786725998, 0.53709918260574...
javascript/reference/global_objects/date/getdate/index.md
JavaScript - Global Objects - Date - getDate - Syntax: Example: getDate()
[ -0.3105434477329254, 0.15618053078651428, -1.2759736776351929, -0.2508290708065033, -0.6884121894836426, -2.1383299827575684, 0.0495428666472435, 0.9313769340515137, -0.608648955821991, -0.688271164894104, -0.15262503921985626, 0.3534282147884369, -0.08951345086097717, 0.02606349065899849,...
javascript/reference/global_objects/date/getdate/index.md
JavaScript - Global Objects - Date - getDate - Syntax - Parameters: None.
[ -0.35738950967788696, 0.28110313415527344, -1.4128142595291138, -0.6262731552124023, -0.6232866048812866, -1.6357227563858032, 0.5299661159515381, 1.0777729749679565, -0.7217790484428406, -0.6478340029716492, -0.5205494165420532, -0.26197677850723267, 0.09757286310195923, 0.214299485087394...
javascript/reference/global_objects/date/getdate/index.md
JavaScript - Global Objects - Date - getDate - Syntax - Return value: An integer, between 1 and 31, representing the day of the month for the given date according to local time. Returns `NaN` if the date is invalid.
[ -0.6287932395935059, -0.3496805429458618, -0.7048366069793701, -0.969693660736084, -0.41377124190330505, -1.6814162731170654, 0.19510625302791595, 0.5803528428077698, -1.0875825881958008, 0.325733482837677, -0.7054132223129272, 0.5476642847061157, -0.07100344449281693, 0.23246315121650696,...
javascript/reference/global_objects/date/getdate/index.md
JavaScript - Global Objects - Date - getDate - Examples - Using getDate(): The `day` variable has value `25`, based on the value of the `Date` object `xmas95`. Example: const xmas95 = new Date("1995-12-25T23:15:30"); const day = xmas95.getDate(); console.log(day); // 25
[ -1.354674220085144, -0.48998817801475525, -1.1148966550827026, 0.4292731285095215, -0.3624790906906128, -1.7991647720336914, -0.5007175803184509, 0.5386582016944885, -0.11763345450162888, -0.2267894297838211, 0.16716217994689941, -0.07088430225849152, 0.13322581350803375, -0.25772011280059...
javascript/reference/global_objects/date/setfullyear/index.md
JavaScript - Global Objects - Date - setFullYear: The `setFullYear()` method of `Date` instances changes the year, month, and/or day of month for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); event.setFullYear(1969); console.log(event.getFullYear()); // Expected ou...
[ -0.09412728250026703, -0.20656225085258484, -1.3969258069992065, 0.6383634805679321, -0.3953353762626648, -2.825827121734619, -0.5000377297401428, 0.5966798663139343, -0.22109366953372955, 0.033748213201761246, -0.4472614526748657, 0.3497389554977417, -0.6151049137115479, 0.534083962440490...
javascript/reference/global_objects/date/setfullyear/index.md
JavaScript - Global Objects - Date - setFullYear - Syntax: Example: setFullYear(yearValue) setFullYear(yearValue, monthValue) setFullYear(yearValue, monthValue, dateValue)
[ -0.23036539554595947, 0.624999463558197, -1.1436108350753784, 0.36978039145469666, -0.5386918187141418, -2.5228700637817383, 0.25519677996635437, 1.0708796977996826, -0.30168694257736206, -0.554684042930603, -0.09901957958936691, 0.32003054022789, 0.3332445025444031, 0.34418606758117676, ...
javascript/reference/global_objects/date/setfullyear/index.md
JavaScript - Global Objects - Date - setFullYear - Syntax - Parameters: - `yearValue`: An integer representing the year. For example, 1995. - `monthValue` (optional): An integer representing the month: 0 for January, 1 for February, and so on. - `dateValue` (optional): An integer between 1 and 31 representing the day ...
[ -0.5611528754234314, 0.08186893165111542, -0.8836174607276917, 0.17121164500713348, 0.27707281708717346, -2.6737234592437744, 0.3804110884666443, 0.5719956159591675, -0.02887519635260105, 0.002551471348851919, -0.2985334098339081, 0.1530918926000595, 0.061174698173999786, 0.299176365137100...
javascript/reference/global_objects/date/setfullyear/index.md
JavaScript - Global Objects - Date - setFullYear - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If a parameter is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.8253576159477234, -0.037986163049936295, -0.8003671765327454, 0.3776744306087494, -0.28560981154441833, -2.2486636638641357, 0.29082614183425903, 0.9016459584236145, -0.971845805644989, 0.46074628829956055, -0.5966159701347351, 0.5910152792930603, -0.13126441836357117, 0.651131570339202...
javascript/reference/global_objects/date/setfullyear/index.md
JavaScript - Global Objects - Date - setFullYear - Description: If you do not specify the `monthValue` and `dateValue` parameters, the same values as what are returned by `getMonth()` and `getDate()` are used. If a parameter you specify is outside of the expected range, other parameters and the date information in th...
[ -0.44517964124679565, 0.2864798903465271, -1.9002671241760254, 0.9629455804824829, -0.18556970357894897, -2.3842835426330566, -0.2879912555217743, 0.06686931103467941, -0.6052030920982361, 0.38943764567375183, -0.41381561756134033, -0.2637633681297302, 0.07411465793848038, 0.52065879106521...
javascript/reference/global_objects/date/setfullyear/index.md
JavaScript - Global Objects - Date - setFullYear - Examples - Using setFullYear(): Example: const theBigDay = new Date(); theBigDay.setFullYear(1997);
[ -0.9912398457527161, 0.5868573188781738, -1.277249813079834, 0.9471479058265686, -0.45118650794029236, -2.1557164192199707, 0.05308259651064873, 0.4605642557144165, -0.11316503584384918, -0.22141654789447784, -0.5286775231361389, 0.42806485295295715, -0.025629356503486633, 0.43686696887016...
javascript/reference/global_objects/date/getutcfullyear/index.md
JavaScript - Global Objects - Date - getUTCFullYear: The `getUTCFullYear()` method of `Date` instances returns the year for this date according to universal time. Example: const date1 = new Date("December 31, 1975, 23:15:30 GMT+11:00"); const date2 = new Date("December 31, 1975, 23:15:30 GMT-11:00"); console.log(da...
[ -0.379795104265213, 0.2312520295381546, -1.0510832071304321, 1.0751522779464722, 0.47783464193344116, -0.8857913017272949, 0.021456461399793625, 0.3175145387649536, -0.4581696093082428, -0.1040790006518364, 0.07217233628034592, 0.5007213354110718, 0.013947766274213791, 0.4347517788410187, ...
javascript/reference/global_objects/date/getutcfullyear/index.md
JavaScript - Global Objects - Date - getUTCFullYear - Syntax: Example: getUTCFullYear()
[ -0.23696081340312958, 0.6639735698699951, -1.8101801872253418, 0.43197375535964966, -0.7073937058448792, -3.0046286582946777, -0.17319290339946747, 0.5047863721847534, -0.22766898572444916, -0.14969657361507416, 0.17419154942035675, 0.6726911067962646, -0.23274780809879303, 0.6412455439567...
javascript/reference/global_objects/date/getutcfullyear/index.md
JavaScript - Global Objects - Date - getUTCFullYear - Syntax - Parameters: None.
[ -0.23411737382411957, 0.5944406986236572, -1.9084593057632446, 0.08535616844892502, -0.523873507976532, -2.068669080734253, 0.3495599627494812, 0.7509487271308899, -0.2397962510585785, -0.14477621018886566, 0.031112583354115486, 0.26055648922920227, -0.0072641228325665, 0.4804396331310272,...
javascript/reference/global_objects/date/getutcfullyear/index.md
JavaScript - Global Objects - Date - getUTCFullYear - Syntax - Return value: An integer representing the year for the given date according to universal time. Returns `NaN` if the date is invalid.
[ -0.6156164407730103, 0.6572017669677734, -1.2853724956512451, 0.28853490948677063, -0.40627068281173706, -2.2771713733673096, 0.28275465965270996, 0.6209126710891724, -0.48001131415367126, 0.6933208107948303, -0.3483104109764099, 1.0412505865097046, -0.05227569490671158, 0.8002440333366394...
javascript/reference/global_objects/date/getutcfullyear/index.md
JavaScript - Global Objects - Date - getUTCFullYear - Description: Unlike `getYear()`, the value returned by `getUTCFullYear()` is an absolute number. For dates between the years 1000 and 9999, `getFullYear()` returns a four-digit number, for example, 1995. Use this function to make sure a year is compliant with years...
[ -0.9865966439247131, 0.5927003622055054, -2.0588557720184326, 0.5905793905258179, -0.21738165616989136, -2.420595645904541, -0.14305953681468964, 0.13494962453842163, -0.2118588387966156, 0.5027724504470825, -0.10626447945833206, 1.0590821504592896, -0.15059609711170197, 0.8279505372047424...
javascript/reference/global_objects/date/getutcfullyear/index.md
JavaScript - Global Objects - Date - getUTCFullYear - Examples - Using getUTCFullYear(): The following example assigns the four-digit value of the current year to the variable `year`. Example: const today = new Date(); const year = today.getUTCFullYear();
[ -0.8169287443161011, 0.8409962058067322, -1.5902211666107178, 0.7947834730148315, -0.15985117852687836, -2.274118423461914, -0.05174484848976135, -0.11139822006225586, 0.18855096399784088, 0.06937137246131897, -0.1696506142616272, 0.8027923107147217, -0.06626791507005692, 0.488633126020431...
javascript/reference/global_objects/date/sethours/index.md
JavaScript - Global Objects - Date - setHours: The `setHours()` method of `Date` instances changes the hours, minutes, seconds, and/or milliseconds for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); event.setHours(20); console.log(event); // Expected output: "Tue Aug...
[ 0.21420687437057495, -0.43605178594589233, -0.9971094727516174, 0.8315181136131287, -0.5024001598358154, -1.997963786125183, -0.4868868291378021, 0.2664389908313751, -0.17849786579608917, 0.020079057663679123, -0.4732813537120819, 0.13807889819145203, -0.11061640083789825, -0.1265661120414...
javascript/reference/global_objects/date/sethours/index.md
JavaScript - Global Objects - Date - setHours - Syntax: Example: setHours(hoursValue) setHours(hoursValue, minutesValue) setHours(hoursValue, minutesValue, secondsValue) setHours(hoursValue, minutesValue, secondsValue, msValue)
[ 0.44453728199005127, 0.31272873282432556, -0.587013840675354, 0.676223874092102, -0.7325267791748047, -1.8275835514068604, -0.14752419292926788, 0.7584456205368042, -0.014537543058395386, -0.7874400615692139, -0.16752423346042633, 0.13863719999790192, 0.5658760666847229, -0.308848917484283...
javascript/reference/global_objects/date/sethours/index.md
JavaScript - Global Objects - Date - setHours - Syntax - Parameters: - `hoursValue`: An integer between 0 and 23 representing the hours. - `minutesValue` (optional): An integer between 0 and 59 representing the minutes. - `secondsValue` (optional): An integer between 0 and 59 representing the seconds. If you specify `...
[ -0.6439188122749329, -0.2568550705909729, -0.5647592544555664, 0.2266785353422165, -0.32534343004226685, -1.5872803926467896, -0.17748340964317322, 0.0030788681469857693, 0.15112847089767456, -0.01422097533941269, -0.3066798150539398, -0.08533025532960892, 0.6090026497840881, -0.3751411139...
javascript/reference/global_objects/date/sethours/index.md
JavaScript - Global Objects - Date - setHours - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If a parameter is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.47088977694511414, -0.18134945631027222, -0.5710769891738892, 0.4614638090133667, -0.505223274230957, -1.786816954612732, 0.2707462012767792, 1.0348514318466187, -1.1488628387451172, 0.45446664094924927, -0.6575669050216675, 0.35453203320503235, 0.06484858691692352, 0.31403374671936035,...
javascript/reference/global_objects/date/sethours/index.md
JavaScript - Global Objects - Date - setHours - Description: If you do not specify the `minutesValue`, `secondsValue`, and `msValue` parameters, the same values as what are returned by `getMinutes()`, `getSeconds()`, and `getMilliseconds()` are used. If a parameter you specify is outside of the expected range, other ...
[ -0.2257377654314041, 0.40937134623527527, -0.7156165838241577, 1.4457275867462158, 0.06706368178129196, -0.7355868816375732, 0.23677298426628113, 0.001278600888326764, -0.13171295821666718, 0.24771927297115326, -0.4389503002166748, -0.3005112409591675, -0.1349814236164093, 0.30116656422615...
javascript/reference/global_objects/date/sethours/index.md
JavaScript - Global Objects - Date - setHours - Examples - Using setHours(): Example: const theBigDay = new Date(); theBigDay.setHours(7);
[ -0.24642354249954224, 0.5256575345993042, -0.9354085326194763, 0.8678252696990967, -0.635295569896698, -1.3618539571762085, -0.32676663994789124, 0.028646619990468025, -0.23062995076179504, -0.6664069294929504, -0.553990364074707, -0.0004999784869141877, 0.35289597511291504, 0.113975040614...
javascript/reference/global_objects/date/todatestring/index.md
JavaScript - Global Objects - Date - toDateString: The `toDateString()` method of `Date` instances returns a string representing the date portion of this date interpreted in the local timezone. Example: const event = new Date(1993, 6, 28, 14, 39, 7); console.log(event.toString()); // Expected output: "Wed Jul 28 19...
[ -1.0259193181991577, 0.002721446566283703, -0.9007037878036499, 0.19174174964427948, 0.2738802134990692, -2.0319979190826416, -0.40048396587371826, 0.23839716613292694, -0.3877531588077545, 0.12820693850517273, 0.2309035062789917, 0.7326666116714478, 0.3076612055301666, 0.3676954507827759,...
javascript/reference/global_objects/date/todatestring/index.md
JavaScript - Global Objects - Date - toDateString - Syntax: Example: toDateString()
[ -1.065661072731018, 0.5011221170425415, -0.5187752842903137, 0.08406034111976624, -0.39232081174850464, -2.458420753479004, 0.20756642520427704, 0.9466838836669922, -0.5296329855918884, -0.6753235459327698, -0.12103457003831863, 0.5632460713386536, 0.09726504236459732, -0.3209216594696045,...
javascript/reference/global_objects/date/todatestring/index.md
JavaScript - Global Objects - Date - toDateString - Syntax - Parameters: None.
[ -0.7831653952598572, 0.4238377511501312, -0.7470706105232239, -0.3542621433734894, -0.4110335111618042, -1.806652545928955, 0.6732714176177979, 1.0583348274230957, -0.6373623609542847, -0.771183431148529, -0.6311793923377991, -0.29860082268714905, 0.09747806191444397, -0.003975333645939827...
javascript/reference/global_objects/date/todatestring/index.md
JavaScript - Global Objects - Date - toDateString - Syntax - Return value: A string representing the date portion of the given date (see description for the format). Returns `"Invalid Date"` if the date is invalid.
[ -0.9823620319366455, 0.06909020990133286, -0.31806057691574097, -0.024120479822158813, -0.02628292143344879, -2.2071516513824463, 0.6886981129646301, 1.0558173656463623, -0.7679325938224792, 0.29849332571029663, -0.44716501235961914, 0.810996413230896, 0.08735950291156769, 0.51076465845108...
javascript/reference/global_objects/date/todatestring/index.md
JavaScript - Global Objects - Date - toDateString - Description: `Date` instances refer to a specific point in time. `toDateString()` interprets the date in the local timezone and formats the date part in English. It always uses the following format, separated by spaces: - First three letters of the week day name - F...
[ -1.2217046022415161, 0.2244199514389038, -0.9259585738182068, -0.03628470376133919, 0.5632601380348206, -1.8933534622192383, 0.023655537515878677, -0.27291035652160645, 0.12258339673280716, 0.3866958022117615, -0.20664270222187042, 0.9517546892166138, -0.18704624474048615, 0.03938589990139...
javascript/reference/global_objects/date/todatestring/index.md
JavaScript - Global Objects - Date - toDateString - Examples - Using toDateString(): Example: const d = new Date(0); console.log(d.toString()); // "Thu Jan 01 1970 00:00:00 GMT+0000 (Coordinated Universal Time)" console.log(d.toDateString()); // "Thu Jan 01 1970"
[ -0.7640323042869568, 0.5130419731140137, -1.0520331859588623, 0.2251129448413849, -0.057251255959272385, -2.237511157989502, -0.5874611139297485, -0.06011638417840004, -0.1300039142370224, -0.3366113603115082, -0.06245249882340431, 0.2754465639591217, 0.12479601800441742, 0.055601328611373...
javascript/reference/global_objects/date/gethours/index.md
JavaScript - Global Objects - Date - getHours: The `getHours()` method of `Date` instances returns the hours for this date according to local time. Example: const birthday = new Date("March 13, 08 04:20"); console.log(birthday.getHours()); // Expected output: 4
[ 0.6180291771888733, -0.23699089884757996, -1.148695707321167, 0.26361674070358276, -0.6506243944168091, -1.6858959197998047, -0.5111707448959351, -0.2599085569381714, -0.47631531953811646, -0.0846967101097107, -0.3730098605155945, -0.04375600814819336, -0.1600506454706192, 0.23102605342864...
javascript/reference/global_objects/date/gethours/index.md
JavaScript - Global Objects - Date - getHours - Syntax: Example: getHours()
[ 0.3011109530925751, 0.12916220724582672, -0.89183109998703, -0.0768982395529747, -1.1466801166534424, -2.176814079284668, 0.00688063632696867, 0.832831859588623, -0.6610375642776489, -0.684709906578064, -0.35092899203300476, -0.1288885921239853, -0.2861221730709076, 0.06113951653242111, ...
javascript/reference/global_objects/date/gethours/index.md
JavaScript - Global Objects - Date - getHours - Syntax - Parameters: None.
[ 0.11383015662431717, 0.40974190831184387, -1.086180567741394, -0.41592374444007874, -0.8841197490692139, -1.4499623775482178, 0.4738883078098297, 1.0847651958465576, -0.6209286451339722, -0.5711645483970642, -0.8094074726104736, -0.757532000541687, -0.12709002196788788, 0.01648650504648685...
javascript/reference/global_objects/date/gethours/index.md
JavaScript - Global Objects - Date - getHours - Syntax - Return value: An integer, between 0 and 23, representing the hours for the given date according to local time. Returns `NaN` if the date is invalid.
[ -0.06645715236663818, -0.08080965280532837, -0.34323057532310486, -0.2906477153301239, -0.9473262429237366, -1.4955723285675049, 0.36344417929649353, 0.35848286747932434, -1.3100663423538208, 0.3313530683517456, -0.8848145604133606, 0.3758930265903473, -0.33562690019607544, -0.136234536767...
javascript/reference/global_objects/date/gethours/index.md
JavaScript - Global Objects - Date - getHours - Examples - Using getHours(): The `hours` variable has value `23`, based on the value of the `Date` object `xmas95`. Example: const xmas95 = new Date("1995-12-25T23:15:30"); const hours = xmas95.getHours(); console.log(hours); // 23
[ -0.2511802017688751, -0.1954335719347, -1.0160422325134277, 0.6493772268295288, -0.8774160742759705, -1.7094541788101196, -0.29581418633461, 0.40209805965423584, -0.3871784210205078, -0.2754324972629547, -0.03311717510223389, -0.5579275488853455, -0.05332699418067932, -0.27524498105049133,...
javascript/reference/global_objects/date/setutcseconds/index.md
JavaScript - Global Objects - Date - setUTCSeconds: The `setUTCSeconds()` method of `Date` instances changes the seconds and/or milliseconds for this date according to universal time. Example: const date = new Date("December 31, 1975, 23:15:30 GMT+11:00"); console.log(date.getUTCSeconds()); // Expected output: 30 ...
[ -0.7049009203910828, -0.23392941057682037, -1.5113461017608643, 0.9582619071006775, -0.25884154438972473, -1.3814462423324585, -0.5688841342926025, 0.41636696457862854, 0.44882798194885254, -0.10433609783649445, -0.13590291142463684, 0.5973351001739502, 0.46184200048446655, 0.1401574611663...
javascript/reference/global_objects/date/setutcseconds/index.md
JavaScript - Global Objects - Date - setUTCSeconds - Syntax: Example: setUTCSeconds(secondsValue) setUTCSeconds(secondsValue, msValue)
[ -0.8022212982177734, 0.5249124765396118, -1.0699198246002197, 0.9661294221878052, -0.5942347645759583, -1.648938775062561, -0.21022722125053406, 0.42952749133110046, 0.5435664653778076, -0.5838392376899719, 0.26486673951148987, 0.5178341269493103, 0.7867419123649597, -0.25669482350349426, ...
javascript/reference/global_objects/date/setutcseconds/index.md
JavaScript - Global Objects - Date - setUTCSeconds - Syntax - Parameters: - `secondsValue`: An integer between 0 and 59 representing the seconds. - `msValue` (optional): An integer between 0 and 999 representing the milliseconds.
[ -0.9301536083221436, -0.02452867105603218, -1.0790830850601196, 0.08884633332490921, -0.18818522989749908, -1.090476155281067, -0.47546178102493286, 0.2633746564388275, 0.7572579383850098, -0.12857632339000702, -0.29239749908447266, 0.3788001537322998, 0.8761777877807617, -0.26905298233032...
javascript/reference/global_objects/date/setutcseconds/index.md
JavaScript - Global Objects - Date - setUTCSeconds - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If a parameter is `NaN` (or other values that get coerced to `NaN`, such as `undefined`), the date is set to Invalid Date and `NaN` is returned.
[ -0.9765406847000122, 0.04402049258351326, -0.9910938739776611, 0.5908043384552002, -0.36986830830574036, -1.5669095516204834, 0.34035009145736694, 0.7861548662185669, -0.823358952999115, 0.4062667489051819, -0.26962029933929443, 0.7547289729118347, 0.3217874765396118, 0.320785790681839, ...
javascript/reference/global_objects/date/setutcseconds/index.md
JavaScript - Global Objects - Date - setUTCSeconds - Description: If you do not specify the `msValue` parameter, the value returned from the `getUTCMilliseconds()` method is used. If a parameter you specify is outside of the expected range, `setUTCSeconds()` attempts to update the date information in the `Date` objec...
[ -1.323294758796692, 0.00366601743735373, -1.6747219562530518, 1.1468360424041748, -0.1873369812965393, -1.6182308197021484, 0.23892077803611755, -0.17010599374771118, 0.156181201338768, -0.23949307203292847, -0.0007166637224145234, 0.5349563956260681, 0.5759753584861755, -0.102535605430603...
javascript/reference/global_objects/date/setutcseconds/index.md
JavaScript - Global Objects - Date - setUTCSeconds - Examples - Using setUTCSeconds(): Example: const theBigDay = new Date(); theBigDay.setUTCSeconds(20);
[ -0.8398927450180054, 0.5189272165298462, -1.3219420909881592, 0.9893644452095032, -0.6176052689552307, -1.3295670747756958, -0.02537294290959835, -0.16504190862178802, 0.04579359292984009, -0.7305852770805359, -0.23163573443889618, 0.7312573194503784, 0.22590579092502594, -0.27211025357246...
javascript/reference/global_objects/date/tolocaletimestring/index.md
JavaScript - Global Objects - Date - toLocaleTimeString: The `toLocaleTimeString()` method of `Date` instances returns a string with a language-sensitive representation of the time portion of this date in the local timezone. In implementations with `Intl.DateTimeFormat` API support, this method delegates to `Intl.Date...
[ -0.08830468356609344, -0.05316783860325813, -0.18233267962932587, 0.9842265248298645, 0.7693787813186646, -1.0025981664657593, 0.48178941011428833, 0.19157882034778595, -0.6397817730903625, 0.4986356794834137, -0.5565329194068909, 0.047133028507232666, -0.2409888058900833, 0.46001532673835...