file
stringlengths
16
94
text
stringlengths
32
24.4k
vector
list
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Using toLocaleString(): Basic use of this method – without specifying `locale` or `options` – depends on the implementation and returns a string formatted based on the default locale and time zone, and with default options. Example: const date = new Da...
[ -1.1265406608581543, 0.019665222615003586, -0.9891867637634277, 0.7241777181625366, -0.16194981336593628, -1.7883907556533813, 0.24052788317203522, -0.20161642134189606, -0.12818200886249542, -0.4017901122570038, 0.09427060186862946, 0.8693310618400574, 0.3756592869758606, -0.1676528155803...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - 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 data. F...
[ -0.9436715245246887, 0.24492938816547394, -0.23241758346557617, 0.7891838550567627, -0.059554774314165115, -1.989993691444397, 0.6077004671096802, -0.1835154891014099, -0.5875550508499146, -0.13400132954120636, 0.010798017494380474, -0.5075555443763733, 0.8889972567558289, 0.46079561114311...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Using locales: This example shows some of the variations in localized date and time 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 languag...
[ -0.698932409286499, 0.1527501940727234, -0.5215160846710205, 0.3397643566131592, 0.14222002029418945, -0.6089361310005188, 0.2526389956474304, 0.03302573040127754, -0.6104539036750793, -0.2965572774410248, 0.1165395975112915, 0.10894522070884705, -0.10431098192930222, 0.6650190949440002, ...
javascript/reference/global_objects/date/tolocalestring/index.md
JavaScript - Global Objects - Date - toLocaleString - Examples - Using options: The results provided by `toLocaleString()` 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: "long"...
[ -0.9097051024436951, 0.09589696675539017, -1.229505181312561, 0.9107133746147156, -0.13415658473968506, -1.8727898597717285, -0.3444700241088867, -0.5469620227813721, 0.027981724590063095, 0.2817198634147644, 0.07003512233495712, 0.7873367667198181, 0.5583036541938782, 0.1352190226316452, ...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate: The `getUTCDate()` method of `Date` instances returns the day of the month for this date according to universal time. Example: const date1 = new Date("August 19, 1975 23:15:30 GMT+11:00"); const date2 = new Date("August 19, 1975 23:15:30 GMT-11:00"); console.log(date...
[ -0.14167843759059906, -0.07039003074169159, -2.251147508621216, 0.40231162309646606, -0.3574330806732178, -1.8073385953903198, -0.4561851918697357, 0.27004918456077576, -0.09440438449382782, 0.2347732037305832, 0.14764046669006348, 0.5576711297035217, 0.22966566681861877, 0.745783329010009...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Syntax: Example: getUTCDate()
[ -0.2043352723121643, 0.3760455250740051, -1.9716659784317017, 0.21007394790649414, -0.7009983658790588, -2.1005146503448486, -0.08494596183300018, 0.491193950176239, -0.04543451964855194, -0.3201265037059784, 0.3531964123249054, 0.6822752952575684, 0.18779821693897247, 0.3001886010169983, ...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Syntax - Parameters: None.
[ -0.20675736665725708, 0.461442768573761, -2.0383572578430176, -0.03873934596776962, -0.6165004968643188, -1.513576626777649, 0.4162141978740692, 0.8737205266952515, -0.07633847743272781, -0.349865198135376, 0.07776658236980438, 0.14026373624801636, 0.23053279519081116, 0.3173908293247223, ...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Syntax - Return value: An integer, between 1 and 31, representing day of month for the given date according to universal time. Returns `NaN` if the date is invalid.
[ -0.5137027502059937, 0.009404703043401241, -1.4412328004837036, -0.37568429112434387, -0.45168939232826233, -1.5269302129745483, 0.012760302983224392, 0.45708802342414856, -0.6002762913703918, 0.44868984818458557, -0.17200332880020142, 0.8460813760757446, 0.3416292369365692, 0.481275439262...
javascript/reference/global_objects/date/getutcdate/index.md
JavaScript - Global Objects - Date - getUTCDate - Examples - Using getUTCDate(): The following example assigns the day of month of the current date to the variable `dayOfMonth`. Example: const today = new Date(); const dayOfMonth = today.getUTCDate();
[ -0.5341796875, 0.07170062512159348, -1.9806180000305176, 0.47474703192710876, -0.5683181881904602, -1.661110520362854, -0.06075026094913483, -0.2913804352283478, 0.41563695669174194, -0.2961484491825104, 0.08815913647413254, 0.19796572625637054, 0.401378870010376, 0.666025698184967, -0.0...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now: The `Date.now()` static method returns the number of milliseconds elapsed since the epoch, which is defined as the midnight at the beginning of January 1, 1970, UTC. Example: // This example takes 2 seconds to run const start = Date.now(); console.log("starting timer..."); ...
[ -1.2289811372756958, -0.5892711281776428, -0.955118715763092, 0.23240993916988373, 0.18608078360557556, -0.8182889819145203, 0.0719410628080368, 0.5521234273910522, 0.06145356222987175, 0.8283668160438538, -0.30922365188598633, 0.44058266282081604, 0.3775661289691925, 0.0369592010974884, ...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Syntax: Example: Date.now()
[ -0.4477219581604004, 0.1347097009420395, -0.7041776180267334, -0.20700986683368683, -0.48108071088790894, -1.8073773384094238, 0.16267386078834534, 1.1502114534378052, 0.11176160722970963, -0.3821278512477875, 0.24281853437423706, 0.5159902572631836, 0.1681622415781021, -0.2646168768405914...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Syntax - Parameters: None.
[ -0.12118801474571228, 0.2745495140552521, -1.0669299364089966, -0.5285437703132629, -0.7178176641464233, -1.3415861129760742, 0.7342004179954529, 1.0371876955032349, -0.09436804056167603, -0.39221516251564026, -0.4903019964694977, -0.16574358940124512, 0.35701555013656616, 0.05108727142214...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Syntax - Return value: A number representing the timestamp, in milliseconds, of the current time.
[ -0.37024036049842834, -0.17336441576480865, -0.8220863938331604, -0.3532116413116455, -0.5165660381317139, -1.1354789733886719, 0.01141942385584116, 1.0509328842163086, -0.2384287565946579, 0.17688433825969696, -0.6952054500579834, 0.6227353811264038, 0.2134016752243042, 0.4563463628292084...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Description - Reduced time precision: To offer protection against timing attacks and fingerprinting, the precision of `Date.now()` might get rounded depending on browser settings. In Firefox, the `privacy.reduceTimerPrecision` preference is enabled by default and defaults to ...
[ -1.5465830564498901, 0.12090650945901871, -0.7405394315719604, 0.27546870708465576, -0.24049851298332214, -0.9298003911972046, 0.40331438183784485, 0.0007571687456220388, -0.11857948452234268, 1.0664489269256592, -0.7219995260238647, 0.15640094876289368, -0.6444154381752014, -0.10458571463...
javascript/reference/global_objects/date/now/index.md
JavaScript - Global Objects - Date - now - Examples - Measuring time elapsed: You can use `Date.now()` to get the current time in milliseconds, then subtract a previous time to find out how much time elapsed between the two calls. Example: const start = Date.now(); doSomeLongRunningProcess(); console.log(`Time elaps...
[ -1.56613290309906, -0.21541346609592438, -0.6114596128463745, 0.472511887550354, -0.2617637813091278, -0.8356679081916809, -0.40724101662635803, -0.19810174405574799, -0.038043126463890076, 0.43937206268310547, -0.45892682671546936, -0.10346884280443192, 0.2607288360595703, 0.3363727033138...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds: The `setMilliseconds()` method of `Date` instances changes the milliseconds for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); console.log(event.getMilliseconds()); // Expected output: 0 event.setMilliseconds(456...
[ -0.7265942096710205, -0.6911584138870239, -1.316146969795227, 0.513854444026947, -0.4347170889377594, -1.536032795906067, -0.44478991627693176, 0.24387644231319427, 0.12349967658519745, 0.02237492986023426, -0.7656171917915344, 0.07526782155036926, 0.462374746799469, -0.19523820281028748, ...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Syntax: Example: setMilliseconds(millisecondsValue)
[ -0.6811842322349548, 0.07468487322330475, -0.8577633500099182, 0.4113268554210663, -0.7643792033195496, -1.290634036064148, 0.23374657332897186, 0.7647566199302673, 0.18033932149410248, -0.7256404757499695, -0.2900499701499939, 0.22887034714221954, 1.2087470293045044, -0.1660858541727066, ...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Syntax - Parameters: - `millisecondsValue`: An integer between 0 and 999 representing the milliseconds.
[ -0.7695313692092896, -0.2708262503147125, -0.996096134185791, 0.016602441668510437, -0.41354823112487793, -0.9072062373161316, -0.36479872465133667, 0.6999364495277405, 0.4347677528858185, -0.45340973138809204, -0.9342712759971619, 0.15647681057453156, 0.9004418253898621, -0.27217122912406...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `millisecondsValue` 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.1092220544815063, -0.21429556608200073, -0.6490288972854614, 0.3186550736427307, -0.4516298174858093, -1.475886344909668, 0.4187382161617279, 0.7011990547180176, -0.6599001288414001, 0.3733256459236145, -0.7869161367416382, 0.2609498202800751, 0.4552531838417053, 0.13553382456302643, ...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Description: If you specify a number outside the expected range, the date information in the `Date` object is updated accordingly. For example, if you specify 1005, the number of seconds is incremented by 1, and 5 is used for the milliseconds. Because `setMillise...
[ -1.1132373809814453, -0.34974783658981323, -1.5187407732009888, 0.8877899050712585, -0.1796942949295044, -2.041853904724121, -0.056217044591903687, -0.1842632293701172, -0.020803501829504967, 0.38589102029800415, -0.9721820950508118, -0.1876053661108017, -0.023099640384316444, 0.1871567219...
javascript/reference/global_objects/date/setmilliseconds/index.md
JavaScript - Global Objects - Date - setMilliseconds - Examples - Using setMilliseconds(): Example: const theBigDay = new Date(); theBigDay.setMilliseconds(100);
[ -1.0376712083816528, -0.0027886023744940758, -1.0764811038970947, 0.7156562209129333, -0.4065774083137512, -1.1145042181015015, 0.05349310114979744, -0.2679431736469269, 0.04208783805370331, -0.41781044006347656, -0.671349287033081, -0.24308495223522186, 1.011804461479187, -0.3104135692119...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate: The `setUTCDate()` method of `Date` instances changes the day of the month for this date according to universal time. Example: const event = new Date("August 19, 1975 23:15:30 GMT-3:00"); console.log(event.getUTCDate()); // Expected output: 20 event.setUTCDate(19); ...
[ -0.19272536039352417, -0.1600652039051056, -1.8925864696502686, 0.6766488552093506, -0.7117981910705566, -1.7241610288619995, -0.5120658278465271, 0.4989399015903473, 0.22329896688461304, 0.021259484812617302, 0.05095361918210983, 0.6270291805267334, 0.10264835506677628, 0.3493857085704803...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Syntax: Example: setUTCDate(dateValue)
[ -0.3260669708251953, 0.4157640039920807, -1.4852943420410156, 0.7200871109962463, -0.7633929252624512, -1.6679061651229858, 0.35545894503593445, 0.6675984263420105, 0.16855348646640778, -0.7066239714622498, 0.46824371814727783, 0.8092906475067139, 0.6996930241584778, 0.03700874000787735, ...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Syntax - Parameters: - `dateValue`: An integer from 1 to 31 representing the day of the month.
[ -0.31580254435539246, -0.028540723025798798, -1.3297340869903564, -0.18305213749408722, -0.23938973248004913, -1.7052384614944458, 0.11744831502437592, 1.0832685232162476, -0.04975447058677673, -0.297120064496994, 0.04721146076917648, 0.23466549813747406, 0.5233498811721802, 0.182152152061...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `dateValue` 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.9396810531616211, 0.12291603535413742, -1.0215175151824951, 0.3764256536960602, -0.48487547039985657, -1.6207560300827026, 0.3150167763233185, 0.9061385989189148, -0.8754580616950989, 0.45845040678977966, 0.011771820485591888, 0.7232357859611511, 0.1311919391155243, 0.45313555002212524,...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Description: If the `dateValue` is outside of the range of date values for the month, `setDate()` will update the `Date` object accordingly. For example, if 0 is provided for `dateValue`, the date will be set to the last day of the previous month. If you use 40 for `d...
[ -1.2838401794433594, 0.15709252655506134, -1.3594871759414673, 0.5757165551185608, -0.15626809000968933, -2.009157657623291, 0.2031567543745041, 0.9623941779136658, -0.6151395440101624, -0.30668607354164124, 0.3237973153591156, 0.6070917844772339, -0.16986018419265747, 0.42095497250556946,...
javascript/reference/global_objects/date/setutcdate/index.md
JavaScript - Global Objects - Date - setUTCDate - Examples - Using setUTCDate(): Example: const theBigDay = new Date(); theBigDay.setUTCDate(20);
[ -0.7297765016555786, 0.506524920463562, -1.5555102825164795, 0.7841894030570984, -0.7177109122276306, -1.3765432834625244, 0.028289737179875374, -0.3635711371898651, 0.03246700018644333, -0.7527072429656982, -0.1340314894914627, 0.8477969765663147, 0.1855877786874771, 0.021956853568553925,...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset: The `getTimezoneOffset()` method of `Date` instances returns the difference, in minutes, between this date as evaluated in the UTC time zone, and the same date as evaluated in the local time zone. Example: const date1 = new Date("August 19, 1975 23:15:30 GMT+07...
[ -0.25289222598075867, -0.670578122138977, -1.5631481409072876, 0.4080565273761749, -0.05080975592136383, -2.001943826675415, -0.6875839829444885, 0.5125488042831421, -0.19095385074615479, 0.2280309647321701, -0.43610629439353943, 0.20879332721233368, -0.43640196323394775, 0.362386941909790...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Syntax: Example: getTimezoneOffset()
[ -0.07260748744010925, -0.0825602188706398, -1.114307165145874, -0.30606809258461, -0.5809498429298401, -2.310365676879883, 0.201449453830719, 0.9694064855575562, -0.46769243478775024, -0.5302298069000244, -0.3555678427219391, 0.1616959571838379, -0.3712077736854553, 0.06968250125646591, ...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Syntax - Parameters: None.
[ -0.05720619484782219, 0.03652191162109375, -1.2524951696395874, -0.4981682002544403, -0.44424906373023987, -1.651901125907898, 0.5568621754646301, 1.1875622272491455, -0.6945942640304565, -0.6634290814399719, -0.8120984435081482, -0.456007719039917, -0.14172153174877167, 0.2909033596515655...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Syntax - Return value: A number representing the difference, in minutes, between the date as evaluated in the UTC time zone and as evaluated in the local time zone. The actual local time algorithm is implementation-defined, and the return value is allowed to be ...
[ -0.6300026178359985, -0.2840035855770111, -0.6062601208686829, 0.0639997348189354, -0.4916274845600128, -1.5184448957443237, 0.32397642731666565, 0.590893566608429, -0.5818472504615784, 0.5641335844993591, -0.8821074366569519, 0.6414241790771484, -0.32207974791526794, 0.49380889534950256, ...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Description: `date.getTimezoneOffset()` returns the difference, in minutes, between `date` as evaluated in the UTC time zone and as evaluated in the local time zone — that is, the time zone of the host system in which the browser is being used (if the code is ru...
[ -0.9426590800285339, -0.1198405921459198, -1.5724079608917236, 0.36161163449287415, 0.09026321023702621, -1.7112351655960083, -0.24036669731140137, 0.5057844519615173, -0.4669642150402069, 0.0568401962518692, -0.29945364594459534, 0.1360563486814499, -0.574794590473175, 0.09859032928943634...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Description - Negative values and positive values: The number of minutes returned by `getTimezoneOffset()` is positive if the local time zone is behind UTC, and negative if the local time zone is ahead of UTC. For example, for UTC+10, `-600` will be returned. -...
[ -1.0405511856079102, -0.29167142510414124, -1.324989914894104, 0.08445743471384048, -0.3318054974079132, -1.7760673761367798, -0.275701642036438, 0.11665089428424835, -0.2587568461894989, 0.38321158289909363, -0.597140908241272, 0.7929590940475464, -0.5517244935035706, 0.14580413699150085,...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Description - Varied results in Daylight Saving Time (DST) regions: In a region that annually shifts in and out of Daylight Saving Time (DST), as `date` varies, the number of minutes returned by calling `getTimezoneOffset()` can be non-uniform. Note: `getTimezo...
[ -0.2826572358608246, 0.01928778924047947, -1.5919089317321777, -0.15957055985927582, -0.6525642275810242, -1.3836798667907715, 0.17447498440742493, 0.14208579063415527, -0.9096099734306335, -0.07690559327602386, -0.9174835085868835, 0.5520287752151489, -0.6580067276954651, -0.1106604859232...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Examples - Using getTimezoneOffset(): Example: // Create a Date instance for the current time const currentLocalDate = new Date(); // Create a Date instance for 03:24 GMT-0200 on May 1st in 2016 const laborDay2016at0324GMTminus2 = new Date("2016-05-01T03:24:00-...
[ -0.24085520207881927, -0.011507109738886356, -0.9265332818031311, 0.41144269704818726, 0.03283631429076195, -1.802655577659607, -0.18496078252792358, 0.199843630194664, -0.10387483984231949, -0.10985308140516281, -0.24629580974578857, 0.11088589578866959, -0.37450239062309265, -0.074312776...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Examples - getTimezoneOffset() and DST: In regions that use DST, the return value may change based on the time of the year `date` is in. Below is the output in a runtime in New York, where the timezone is UTC-05:00. Example: const nyOffsetSummer = new Date("20...
[ -0.5558314919471741, 0.12755966186523438, -1.5105875730514526, 0.23983608186244965, -0.502941370010376, -1.4714231491088867, -0.9980416297912598, 0.557488203048706, 0.11863214522600174, 0.28531214594841003, -0.8575475811958313, 0.5964232683181763, -0.3716733455657959, 0.09047617763280869, ...
javascript/reference/global_objects/date/gettimezoneoffset/index.md
JavaScript - Global Objects - Date - getTimezoneOffset - Examples - getTimezoneOffset() and historical data: Due to historical reasons, the timezone a region is in can be constantly changing, even disregarding DST. For example, below is the output in a runtime in Shanghai, where the timezone is UTC+08:00. Example: c...
[ -1.0288269519805908, -0.01923215016722679, -1.6831895112991333, -0.09001001715660095, -0.5923221111297607, -1.3412787914276123, -0.8339280486106873, 1.0442107915878296, 0.3378937244415283, 0.0008533744839951396, -0.6853024363517761, 0.30488121509552, -0.6330887675285339, 0.0012001934228464...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate: The `setDate()` method of `Date` instances changes the day of the month for this date according to local time. Example: const event = new Date("August 19, 1975 23:15:30"); event.setDate(24); console.log(event.getDate()); // Expected output: 24 event.setDate(32); // On...
[ -0.5442187190055847, -0.6213412880897522, -1.4377954006195068, 0.5400128364562988, -0.32710400223731995, -1.7763664722442627, -0.7513988018035889, 0.761303186416626, -0.23960070312023163, 0.1507527232170105, -0.33087024092674255, 0.2196194976568222, 0.12800389528274536, 0.15807119011878967...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Syntax: Example: setDate(dateValue)
[ -0.44760748744010925, 0.3117894232273102, -0.9644489288330078, 0.3993404507637024, -0.604472815990448, -1.6561756134033203, 0.372149795293808, 1.1838351488113403, -0.33636724948883057, -0.8925008177757263, 0.16046634316444397, 0.6424850821495056, 0.8401438593864441, -0.11339060962200165, ...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Syntax - Parameters: - `dateValue`: An integer representing the day of the month.
[ -0.20765885710716248, -0.07582957297563553, -1.285285234451294, -0.1077089011669159, -0.3865053653717041, -1.9474231004714966, 0.5164984464645386, 1.522822618484497, -0.28493884205818176, -0.4387968182563782, -0.3288334608078003, -0.26770874857902527, 0.5865564346313477, 0.2306515276432037...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `dateValue` 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.0575941801071167, -0.16286492347717285, -0.7992578744888306, 0.199357271194458, -0.3797459900379181, -1.7174644470214844, 0.20914222300052643, 1.1906557083129883, -1.1362385749816895, 0.30849888920783997, -0.38826364278793335, 0.4812243580818176, 0.12701182067394257, 0.4378001093864441,...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Description: If you specify a number outside the expected range, the date information in the `Date` object is updated accordingly. For example, if the `Date` object holds June 1st, a `dateValue` of 40 changes the date to July 10th, while a `dateValue` of 0 changes the dat...
[ -1.0949881076812744, -0.39719656109809875, -1.5435097217559814, 0.880892276763916, -0.48145171999931335, -2.3294730186462402, -0.5400382280349731, 0.411712110042572, -0.4462633728981018, 0.2476256787776947, -0.2977951765060425, -0.0058791013434529305, -0.11228132247924805, 0.40516912937164...
javascript/reference/global_objects/date/setdate/index.md
JavaScript - Global Objects - Date - setDate - Examples - Using setDate(): Example: const theBigDay = new Date(1962, 6, 7, 12); // noon of 1962-07-07 (7th of July 1962, month is 0-indexed) const theBigDay2 = new Date(theBigDay).setDate(24); // 1962-07-24 (24th of July 1962) const theBigDay3 = new Date(theBigDay).setD...
[ -0.6391842365264893, 0.40238896012306213, -1.279543399810791, 0.4559086859226227, -0.259490042924881, -1.7111396789550781, -0.47677934169769287, 0.33837568759918213, 0.03968929126858711, -0.36318618059158325, -0.14789380133152008, 0.306810587644577, 0.14916108548641205, -0.071482814848423,...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf: The `valueOf()` method of `Date` instances returns the number of milliseconds for this date since the epoch, which is defined as the midnight at the beginning of January 1, 1970, UTC. Example: const date1 = new Date(Date.UTC(96, 1, 2, 3, 4, 5)); console.log(date1.valueO...
[ -0.5979984402656555, -0.7984111905097961, -0.8600603342056274, 0.45106935501098633, 0.04992714151740074, -0.8505316376686096, 0.19945144653320312, 0.5119831562042236, -0.20065775513648987, -0.040317222476005554, -0.32105037569999695, 0.5877630114555359, 0.7707854509353638, 0.56508648395538...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Syntax: Example: valueOf()
[ 0.05635526776313782, -0.09800926595926285, -0.5427848696708679, -0.1359269917011261, -0.47113439440727234, -1.6156549453735352, 0.7401472926139832, 1.2130497694015503, 0.059105515480041504, -0.8238623142242432, -0.4033300578594208, 0.5541657209396362, -0.043541762977838516, 0.2987114489078...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Syntax - Parameters: None.
[ -0.1601920872926712, 0.2846008837223053, -1.0441828966140747, -0.30597251653671265, -0.6144090890884399, -1.2579567432403564, 1.0236849784851074, 1.1581733226776123, -0.3738366961479187, -0.8455922603607178, -0.6304033398628235, -0.26794955134391785, 0.08394747972488403, 0.1735610812902450...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Syntax - Return value: A number representing the timestamp, in milliseconds, of this date. Returns `NaN` if the date is invalid.
[ -0.46988773345947266, -0.28894922137260437, -0.34731343388557434, -0.3074037432670593, -0.5723936557769775, -1.096055269241333, 0.602446973323822, 0.906582236289978, -0.747349202632904, 0.1534368097782135, -0.9536772966384888, 0.7163326740264893, 0.43385493755340576, 0.5240926146507263, ...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Description: The `valueOf()` method is part of the type coercion protocol. Because `Date` has a `[Symbol.toPrimitive]()` method, that method always takes priority over `valueOf()` when a `Date` object is implicitly coerced to a number. However, `Date.prototype[Symbol.toPr...
[ -0.8663100600242615, -0.40611135959625244, -0.5840985774993896, -0.23487825691699982, 0.2701433300971985, -1.1992485523223877, 0.5427345037460327, 0.8999916315078735, -0.7286017537117004, 0.39250850677490234, -1.2617624998092651, 0.17202109098434448, -0.06328386068344116, -0.02225529029965...
javascript/reference/global_objects/date/valueof/index.md
JavaScript - Global Objects - Date - valueOf - Examples - Using valueOf(): Example: const d = new Date(0); // 1970-01-01T00:00:00.000Z console.log(d.valueOf()); // 0
[ 0.1459517627954483, -0.07078356295824051, -1.0830928087234497, 0.5541406869888306, -0.12897630035877228, -1.0030889511108398, 0.16708454489707947, 0.24320346117019653, 0.28013110160827637, -0.7275933623313904, -0.3119378089904785, -0.06899514049291611, 0.34133148193359375, 0.15127925574779...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth: The `setUTCMonth()` method of `Date` instances changes the month and/or day of the month for this date according to universal time. Example: const event = new Date("December 31, 1975 23:15:30 GMT-3:00"); console.log(event.toUTCString()); // Expected output: "Thu, 01...
[ -0.2118608057498932, -0.1878519505262375, -1.6622439622879028, 0.47151511907577515, -0.4495311677455902, -1.764599323272705, -0.6690241098403931, 0.3396589457988739, 0.3407743275165558, -0.22176818549633026, 0.3148251473903656, 0.7179865837097168, 0.24964754283428192, 0.4534074068069458, ...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Syntax: Example: setUTCMonth(monthValue) setUTCMonth(monthValue, dateValue)
[ 0.14554159343242645, 0.3073151409626007, -1.9707716703414917, 0.42691391706466675, -0.9767968058586121, -1.8235058784484863, 0.26254141330718994, 0.47301799058914185, 0.2133745700120926, -0.7453563213348389, 0.39402490854263306, 0.38495320081710815, 0.5973223447799683, 0.19151215255260468,...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Syntax - Parameters: - `monthValue`: An integer representing the month: 0 for January, 1 for February, and so on. - `dateValue` (optional): An integer from 1 to 31 representing the day of the month.
[ -0.26666945219039917, 0.11306565254926682, -1.4277582168579102, -0.028541408479213715, -0.06224554777145386, -2.158271551132202, 0.2719805836677551, 0.4583829641342163, 0.07584301382303238, -0.186382457613945, -0.020244043320417404, 0.10369448363780975, 0.49583926796913147, 0.1391431987285...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - 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.6076833009719849, -0.08803556859493256, -1.210713267326355, 0.33702710270881653, -0.45992204546928406, -1.6055291891098022, 0.37348833680152893, 0.7878101468086243, -0.97947096824646, 0.47346583008766174, -0.1518429070711136, 0.6142375469207764, 0.2007162868976593, 0.7038528323173523, ...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Description: If you do not specify the `dateValue` parameter, the value returned from the `getUTCDate()` method is used. If a parameter you specify is outside of the expected range, `setUTCMonth()` attempts to update the date information in the `Date` object accordin...
[ -0.7580602169036865, -0.02158520184457302, -1.9704992771148682, 0.7865036725997925, -0.40432828664779663, -2.2198877334594727, 0.54768967628479, -0.032907627522945404, -0.37706947326660156, -0.29307207465171814, 0.2346966564655304, 0.5930060744285583, 0.15922024846076965, 0.451962411403656...
javascript/reference/global_objects/date/setutcmonth/index.md
JavaScript - Global Objects - Date - setUTCMonth - Examples - Using setUTCMonth(): Example: const theBigDay = new Date(); theBigDay.setUTCMonth(11);
[ -0.4188575744628906, 0.25082850456237793, -1.8602643013000488, 0.7475592494010925, -0.6606473922729492, -1.5696570873260498, -0.07702074944972992, -0.30108532309532166, 0.05669966712594032, -0.6336557865142822, -0.06447574496269226, 0.14905352890491486, 0.42730069160461426, 0.3128424584865...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString: The `toISOString()` method of `Date` instances returns a string representing this date in the date time string format, a simplified format based on ISO 8601, which is always 24 or 27 characters long (`YYYY-MM-DDTHH:mm:ss.sssZ` or `±YYYYYY-MM-DDTHH:mm:ss.sssZ`, respecti...
[ -1.3258440494537354, -0.29936882853507996, -0.5838966965675354, 0.26438823342323303, 0.4101914167404175, -2.0886123180389404, -0.7022935748100281, -0.1815328747034073, -0.7400470972061157, 0.33606767654418945, -0.06661266833543777, 0.6534802913665771, 0.26515161991119385, 0.490999102592468...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax: Example: toISOString()
[ -1.1147308349609375, 0.2800690233707428, -0.47217610478401184, -0.009848092682659626, -0.29735565185546875, -2.4164414405822754, -0.11856537312269211, 0.6873317360877991, -0.7317783236503601, -0.3516843318939209, -0.17682936787605286, 0.1348385065793991, 0.20038354396820068, -0.06411948800...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax - Parameters: None.
[ -0.7900578379631042, 0.42931950092315674, -0.7603246569633484, -0.42528656125068665, -0.3612927496433258, -1.9253536462783813, 0.5219123959541321, 0.9567585587501526, -0.6683996915817261, -0.49189484119415283, -0.6534495949745178, -0.4638965129852295, 0.29594138264656067, 0.126187756657600...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax - Return value: A string representing the given date in the date time string format according to universal time. It's the same format as the one required to be recognized by `Date.parse()`.
[ -0.994385838508606, 0.39472195506095886, -0.6285114288330078, 0.22432440519332886, -0.18692882359027863, -2.0375478267669678, 0.23345205187797546, 0.7949237823486328, -0.6306190490722656, 0.30266767740249634, -0.34557467699050903, 0.8683245778083801, 0.43160372972488403, 0.8811507225036621...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Syntax - Exceptions: - `RangeError`: Thrown if the date is invalid or if it corresponds to a year that cannot be represented in the date string format.
[ -0.8882284164428711, 0.30892595648765564, -0.3635103106498718, 0.3641144931316376, 0.08077191561460495, -2.9406371116638184, -0.24465449154376984, 0.8761517405509949, -1.037782073020935, 0.15792518854141235, -0.6184767484664917, 0.056787408888339996, -0.5891280174255371, -0.085729375481605...
javascript/reference/global_objects/date/toisostring/index.md
JavaScript - Global Objects - Date - toISOString - Examples - Using toISOString(): Example: const d = new Date(0); console.log(d.toISOString()); // "1970-01-01T00:00:00.000Z"
[ -0.6103430986404419, 0.3272719979286194, -0.872517466545105, 0.39618775248527527, 0.03960337117314339, -2.034590721130371, -0.13808807730674744, -0.03293821960687637, -0.32890942692756653, -0.33829331398010254, -0.23628529906272888, -0.2446826845407486, 0.316768079996109, 0.016617298126220...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds: The `getUTCMilliseconds()` method of `Date` instances returns the milliseconds for this date according to universal time. Example: const exampleDate = new Date("2018-01-02T03:04:05.678Z"); // 2 January 2018, 03:04:05.678 (UTC) console.log(exampleDate.getUTCMi...
[ -0.9469283223152161, 0.24605689942836761, -1.7289783954620361, 0.32645249366760254, -0.27387914061546326, -1.4537166357040405, -0.4238623082637787, -0.15185445547103882, -0.11658499389886856, 0.2788566052913666, -0.13776274025440216, 0.3933010697364807, 1.1684165000915527, 0.35017979145050...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Syntax: Example: getUTCMilliseconds()
[ -0.5750849843025208, 0.29563000798225403, -1.864720344543457, 0.19040338695049286, -0.7856560349464417, -1.7948877811431885, -0.1911608874797821, 0.3007448613643646, 0.043359942734241486, -0.17748166620731354, 0.03535044193267822, 0.2857149541378021, 0.5723972916603088, 0.1546919345855713,...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Syntax - Parameters: None.
[ -0.6201319694519043, 0.3703385293483734, -1.7017306089401245, -0.20247243344783783, -0.5997112393379211, -1.241937279701233, 0.3467051088809967, 0.7512007355690002, -0.01137484796345234, -0.40166717767715454, -0.19352199137210846, -0.22884178161621094, 0.598991870880127, 0.1166237443685531...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Syntax - Return value: An integer, between 0 and 999, representing the milliseconds for the given date according to universal time. Returns `NaN` if the date is invalid. Not to be confused with the timestamp. To get the total milliseconds since the epoch, use ...
[ -1.0212714672088623, 0.12442964315414429, -1.166516661643982, 0.1711881160736084, -0.3681206703186035, -1.0818531513214111, 0.09258096665143967, 0.25648969411849976, -0.5278581976890564, 0.39923128485679626, -0.4565923511981964, 0.9558489322662354, 0.7523577809333801, 0.18280071020126343, ...
javascript/reference/global_objects/date/getutcmilliseconds/index.md
JavaScript - Global Objects - Date - getUTCMilliseconds - Examples - Using getUTCMilliseconds(): The following example assigns the milliseconds portion of the current time to the variable `milliseconds`. Example: const today = new Date(); const milliseconds = today.getUTCMilliseconds();
[ -0.9689359068870544, 0.44152331352233887, -1.7886966466903687, 0.665164053440094, -0.43419960141181946, -1.0599650144577026, -0.04698561877012253, -0.18803554773330688, 0.6408467888832092, -0.09743539988994598, -0.3133006989955902, 0.09026964753866196, 0.48994138836860657, 0.23496305942535...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds: The `setUTCMilliseconds()` method of `Date` instances changes the milliseconds for this date according to universal time. Example: const date = new Date("2018-01-24T12:38:29.069Z"); console.log(date.getUTCMilliseconds()); // Expected output: 69 date.setUTCMi...
[ -0.9829894304275513, -0.055530667304992676, -1.583282709121704, 0.6547296047210693, -0.3778702914714813, -1.2640106678009033, -0.862765908241272, -0.020611081272363663, 0.24340569972991943, 0.009787814691662788, -0.44244420528411865, 0.21620970964431763, 0.9053210616111755, 0.1467282176017...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Syntax: Example: setUTCMilliseconds(millisecondsValue)
[ -0.6968115568161011, 0.34899190068244934, -1.5460219383239746, 0.6740162372589111, -0.7561588883399963, -1.435088872909546, 0.025966979563236237, 0.46918976306915283, 0.3743705451488495, -0.510762095451355, -0.025553178042173386, 0.4486566483974457, 1.1004661321640015, -0.13539095222949982...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Syntax - Parameters: - `millisecondsValue`: An integer between 0 and 999 representing the milliseconds.
[ -0.7548691630363464, -0.03938908502459526, -1.1813334226608276, 0.19665277004241943, -0.360507607460022, -0.9341567754745483, -0.41753754019737244, 0.5911083817481995, 0.5322135090827942, -0.33570584654808044, -0.7098510265350342, 0.32877153158187866, 0.8640764355659485, -0.242189615964889...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `millisecondsValue` 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.0995005369186401, 0.041460469365119934, -0.8684324026107788, 0.40133291482925415, -0.3792957067489624, -1.4618946313858032, 0.4087012708187103, 0.6180265545845032, -0.6079109311103821, 0.446077436208725, -0.5047736167907715, 0.498598575592041, 0.4675751030445099, 0.22118037939071655, ...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Description: If a parameter you specify is outside of the expected range, `setUTCMilliseconds()` attempts to update the date information in the `Date` object accordingly. For example, if you use 1100 for `millisecondsValue`, the seconds stored in the `Date` obj...
[ -1.339985728263855, -0.17240837216377258, -1.7723805904388428, 1.254171371459961, -0.3040652275085449, -1.9570385217666626, 0.06397783011198044, -0.11559688299894333, 0.08737735450267792, -0.2889125943183899, -0.6104006767272949, 0.5177100896835327, 0.32627764344215393, 0.06503302603960037...
javascript/reference/global_objects/date/setutcmilliseconds/index.md
JavaScript - Global Objects - Date - setUTCMilliseconds - Examples - Using setUTCMilliseconds(): Example: const theBigDay = new Date(); theBigDay.setUTCMilliseconds(500);
[ -0.8824619650840759, 0.3149028420448303, -1.6420375108718872, 1.057794451713562, -0.5593191981315613, -1.106728196144104, -0.2274380624294281, -0.3024010956287384, 0.17719456553459167, -0.5844097137451172, -0.3019399642944336, 0.21248425543308258, 0.775646448135376, -0.22270937263965607, ...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear: Deprecated: This feature is no longer recommended. The `setYear()` method of `Date` instances sets the year for a specified date according to local time. However, the way the legacy `setYear()` method sets year values is different from how the preferred `setFullYear()` m...
[ -1.0838228464126587, 0.20607784390449524, -1.5075634717941284, 0.38473132252693176, 0.0057214368134737015, -2.523496389389038, -0.07366769760847092, 0.8806871771812439, -0.11219995468854904, 0.3442458510398865, -0.6332820057868958, 0.5997657179832458, -0.2830164432525635, 0.671767592430114...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear - Syntax: Example: setYear(yearValue)
[ -0.44437268376350403, 0.5559649467468262, -0.785028874874115, 0.2623567283153534, -0.43300965428352356, -1.9482395648956299, 0.016814857721328735, 1.183606743812561, -0.08332115411758423, -0.5601394772529602, 0.10429554432630539, 0.5725569128990173, 0.28673064708709717, 0.3317541778087616,...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear - Syntax - Parameters: - `yearValue`: An integer.
[ -0.3780067563056946, 0.4015820026397705, -0.812599241733551, -0.06950382143259048, 0.09314606338739395, -1.9290472269058228, 0.07215128093957901, 1.3324412107467651, 0.1744919866323471, -0.44709089398384094, -0.6886218786239624, 0.23891666531562805, 0.06528765708208084, 0.22204507887363434...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear - Syntax - Return value: Changes the `Date` object in place, and returns its new timestamp. If `yearValue` 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.098106026649475, 0.15473416447639465, -0.6124745011329651, 0.2586112916469574, -0.17078571021556854, -1.944092869758606, 0.018465008586645126, 1.1540008783340454, -0.9516912698745728, 0.3558240532875061, -0.3362414836883545, 0.5184078812599182, -0.247229665517807, 0.49898144602775574, ...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear - Description: If `yearValue` is a number between 0 and 99 (inclusive), then the year for `dateObj` is set to `1900 + yearValue`. Otherwise, the year for `dateObj` is set to `yearValue`.
[ -1.5886950492858887, 0.09568609297275543, -0.7956333160400391, 0.13473881781101227, 0.0014241185272112489, -1.5334267616271973, -0.11756516247987747, 0.5870019793510437, -0.16421768069267273, 0.3558019995689392, 0.08109939843416214, 0.5224273204803467, -0.023570140823721886, 0.346750885248...
javascript/reference/global_objects/date/setyear/index.md
JavaScript - Global Objects - Date - setYear - Examples - Using setYear(): The first two lines set the year to 1996. The third sets the year to 2000. Example: const theBigDay = new Date(); theBigDay.setYear(96); theBigDay.setYear(1996); theBigDay.setYear(2000);
[ -1.472773790359497, 0.4056796431541443, -1.327860713005066, 0.3816675543785095, 0.10355862230062485, -1.267335295677185, -0.46381089091300964, 0.49256399273872375, 0.03203520551323891, -0.014858916401863098, -0.7785611152648926, 0.7742757201194763, 0.286939799785614, -0.20609614253044128, ...
javascript/reference/global_objects/date/getmilliseconds/index.md
JavaScript - Global Objects - Date - getMilliseconds: The `getMilliseconds()` method of `Date` instances returns the milliseconds for this date according to local time. Example: const moonLanding = new Date("July 20, 69 00:20:18"); moonLanding.setMilliseconds(123); console.log(moonLanding.getMilliseconds()); // Exp...
[ -0.6604098081588745, -0.3029189705848694, -1.6322370767593384, -0.28396403789520264, -0.3750997483730316, -1.402174711227417, 0.17325849831104279, 0.18393202126026154, -0.5762248039245605, -0.057738907635211945, -0.7957556843757629, -0.004326199181377888, 0.7484780550003052, 0.309777557849...
javascript/reference/global_objects/date/getmilliseconds/index.md
JavaScript - Global Objects - Date - getMilliseconds - Syntax: Example: getMilliseconds()
[ -0.6593767404556274, -0.09230587631464005, -1.0518120527267456, -0.2580820918083191, -0.8245893716812134, -1.7670599222183228, 0.04752571880817413, 0.5795053243637085, -0.13913334906101227, -0.488140344619751, -0.3658194839954376, -0.1541639268398285, 0.4294007122516632, -0.124652378261089...
javascript/reference/global_objects/date/getmilliseconds/index.md
JavaScript - Global Objects - Date - getMilliseconds - Syntax - Parameters: None.
[ -0.7076524496078491, 0.29919660091400146, -1.1812819242477417, -0.6678948402404785, -0.6575360894203186, -1.1729618310928345, 0.45933783054351807, 0.9015915393829346, -0.2906423509120941, -0.649917721748352, -0.7677116394042969, -0.7514533996582031, 0.5383985042572021, 0.018186397850513458...
javascript/reference/global_objects/date/getmilliseconds/index.md
JavaScript - Global Objects - Date - getMilliseconds - Syntax - Return value: An integer, between 0 and 999, representing the milliseconds for the given date according to local time. Returns `NaN` if the date is invalid.
[ -1.0792509317398071, -0.2653525173664093, -0.4494345784187317, -0.45926612615585327, -0.5416533350944519, -1.0022050142288208, 0.12056194245815277, 0.3053979277610779, -0.7187258005142212, 0.5489892363548279, -1.1877304315567017, 0.6248694658279419, 0.5003107190132141, -0.09422148019075394...
javascript/reference/global_objects/date/getmilliseconds/index.md
JavaScript - Global Objects - Date - getMilliseconds - Examples - Using getMilliseconds(): The `milliseconds` variable has value `0`, based on the value of the `Date` object `xmas95`, which doesn't specify the milliseconds component, so it defaults to 0. Example: const xmas95 = new Date("1995-12-25T23:15:30"); const...
[ -1.4722270965576172, -0.3474564552307129, -1.4917420148849487, 0.343449205160141, -0.10069302469491959, -1.3172630071640015, 0.09540397673845291, 0.483124703168869, 0.14508716762065887, -0.07249878346920013, -0.3650508224964142, -0.5468476414680481, 0.8407478332519531, -0.5546863675117493,...
javascript/reference/global_objects/date/setutcfullyear/index.md
JavaScript - Global Objects - Date - setUTCFullYear: The `setUTCFullYear()` method of `Date` instances changes the year for this date according to universal time. Example: const event = new Date("December 31, 1975 23:15:30 GMT-3:00"); console.log(event.getUTCFullYear()); // Expected output: 1976 console.log(event....
[ -0.2497148960828781, 0.12871761620044708, -1.3490898609161377, 0.8570041656494141, -0.10116910934448242, -2.328200101852417, -0.9082967042922974, 0.24497199058532715, 0.30635711550712585, 0.030170414596796036, 0.04906769469380379, 1.0385633707046509, -0.13278424739837646, 0.611636817455291...
javascript/reference/global_objects/date/setutcfullyear/index.md
JavaScript - Global Objects - Date - setUTCFullYear - Syntax: Example: setUTCFullYear(yearValue) setUTCFullYear(yearValue, monthValue) setUTCFullYear(yearValue, monthValue, dateValue)
[ -0.21847942471504211, 0.9535043239593506, -1.6117357015609741, 0.8370540738105774, -0.6322064995765686, -2.6221694946289062, 0.05412033945322037, 0.6199370622634888, 0.0828283354640007, -0.4109433889389038, 0.14660397171974182, 0.5850923657417297, 0.37226060032844543, 0.353740930557251, ...
javascript/reference/global_objects/date/setutcfullyear/index.md
JavaScript - Global Objects - Date - setUTCFullYear - 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 d...
[ -0.4380931854248047, 0.32182610034942627, -1.189792513847351, 0.3431754410266876, 0.2285880744457245, -2.6176373958587646, 0.2991865277290344, 0.4617769122123718, 0.14972615242004395, 0.11389612406492233, -0.019011368975043297, 0.4157293438911438, 0.16269232332706451, 0.4155787229537964, ...
javascript/reference/global_objects/date/setutcfullyear/index.md
JavaScript - Global Objects - Date - setUTCFullYear - 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.789577305316925, 0.18843308091163635, -1.1891363859176636, 0.6380132436752319, -0.2200205773115158, -2.1088876724243164, 0.3311310112476349, 0.7517454028129578, -0.7921952605247498, 0.6560073494911194, -0.22491280734539032, 0.8906952738761902, -0.0017232937971130013, 0.7486494779586792,...
javascript/reference/global_objects/date/setutcfullyear/index.md
JavaScript - Global Objects - Date - setUTCFullYear - Description: If you do not specify the `monthValue` and `dateValue` parameters, the values returned from the `getUTCMonth()` and `getUTCDate()` methods are used. If a parameter you specify is outside of the expected range, `setUTCFullYear()` attempts to update the...
[ -0.5865625143051147, 0.21768386662006378, -2.004225969314575, 0.8310840129852295, -0.13847221434116364, -2.360980272293091, 0.5590698719024658, 0.10605693608522415, -0.47025805711746216, -0.06457890570163727, 0.011153760366141796, 0.5536019802093506, 0.13847048580646515, 0.5530480742454529...
javascript/reference/global_objects/date/setutcfullyear/index.md
JavaScript - Global Objects - Date - setUTCFullYear - Examples - Using setUTCFullYear(): Example: const theBigDay = new Date(); theBigDay.setUTCFullYear(1997);
[ -0.7860016822814941, 0.7879086136817932, -1.6837276220321655, 1.1467736959457397, -0.4679078161716461, -2.191709518432617, -0.09095828235149384, 0.2569827139377594, -0.012648103758692741, -0.27424001693725586, -0.1650109738111496, 0.6719033122062683, -0.012912941165268421, 0.40384188294410...
javascript/reference/global_objects/date/totimestring/index.md
JavaScript - Global Objects - Date - toTimeString: The `toTimeString()` method of `Date` instances returns a string representing the time portion of this date interpreted in the local timezone. Example: const event = new Date("August 19, 1975 23:15:30"); console.log(event.toTimeString()); // Expected output: "23:15...
[ -0.5396372079849243, -0.23264923691749573, -0.7446245551109314, 0.5114457607269287, 0.30046287178993225, -2.6253788471221924, -0.36260563135147095, 0.13370093703269958, -0.3463665544986725, 0.25906437635421753, -0.06474284082651138, 0.3351426124572754, 0.04178338497877121, 0.34875082969665...
javascript/reference/global_objects/date/totimestring/index.md
JavaScript - Global Objects - Date - toTimeString - Syntax: Example: toTimeString()
[ -1.0784834623336792, 0.46981391310691833, -0.15806448459625244, 0.12589198350906372, -0.4209769666194916, -2.4884393215179443, 0.15446791052818298, 0.7933927178382874, -0.49830251932144165, -0.6265688538551331, -0.028991537168622017, 0.13824862241744995, 0.06258007884025574, -0.16698053479...
javascript/reference/global_objects/date/totimestring/index.md
JavaScript - Global Objects - Date - toTimeString - Syntax - Parameters: None.
[ -0.8302409052848816, 0.5518067479133606, -0.6090536713600159, -0.38709136843681335, -0.3952697217464447, -1.865981101989746, 0.5634945034980774, 0.9910345077514648, -0.5724932551383972, -0.7713050842285156, -0.5426245927810669, -0.5631318688392639, 0.06052631884813309, 0.01845855452120304,...
javascript/reference/global_objects/date/totimestring/index.md
JavaScript - Global Objects - Date - toTimeString - Syntax - Return value: A string representing the time portion of the given date (see description for the format). Returns `"Invalid Date"` if the date is invalid.
[ -0.973284125328064, 0.11358719319105148, -0.13893383741378784, -0.03057863749563694, -0.03189004212617874, -2.1642961502075195, 0.5527211427688599, 0.9088573455810547, -0.7198571562767029, 0.40324172377586365, -0.35089969635009766, 0.5249233245849609, 0.04555298760533333, 0.582706809043884...
javascript/reference/global_objects/date/totimestring/index.md
JavaScript - Global Objects - Date - toTimeString - Description: `Date` instances refer to a specific point in time. `toTimeString()` interprets the date in the local timezone and formats the time part in English. It always uses the format of `HH:mm:ss GMT±xxxx (TZ)`, where: - Format String: `HH`, Description: Hour, ...
[ -0.7246143221855164, 0.40802210569381714, -0.5182726383209229, 0.7174777388572693, 0.7677938342094421, -1.1562409400939941, 0.5887336730957031, 0.10731831938028336, -0.8945639133453369, 0.2274285852909088, -0.7032303214073181, 0.11841645836830139, -0.7502551078796387, 0.11221787333488464, ...
javascript/reference/global_objects/date/totimestring/index.md
JavaScript - Global Objects - Date - toTimeString - Examples - Using toTimeString(): 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.toTimeString()); // "00:00:00 GMT+0000 (Coordinated Universal Time)"
[ -0.8911586999893188, 0.5138847231864929, -0.9232907295227051, 0.12943246960639954, -0.08349060267210007, -2.0583393573760986, -0.722038984298706, -0.19273929297924042, -0.047809164971113205, -0.2166128158569336, 0.07476095855236053, 0.15552332997322083, 0.08776776492595673, 0.1177561730146...
javascript/reference/global_objects/date/getfullyear/index.md
JavaScript - Global Objects - Date - getFullYear: The `getFullYear()` method of `Date` instances returns the year for this date according to local time. Use this method instead of the `getYear()` method. Example: const moonLanding = new Date("July 20, 69 00:20:18"); console.log(moonLanding.getFullYear()); // Expec...
[ -0.06999607384204865, 0.10953866690397263, -1.5412529706954956, 0.12075723707675934, -0.029715977609157562, -2.4833381175994873, -0.016156252473592758, 0.3768984079360962, -0.9853115677833557, 0.1683080792427063, -0.5546700358390808, 0.5081643462181091, -0.09092386066913605, 0.980711221694...
javascript/reference/global_objects/date/getfullyear/index.md
JavaScript - Global Objects - Date - getFullYear - Syntax: Example: getFullYear()
[ -0.2704545855522156, 0.46801698207855225, -1.2494577169418335, -0.03484851121902466, -0.838006854057312, -3.030585289001465, 0.06353949755430222, 0.766089916229248, -0.43375903367996216, -0.3210357427597046, -0.19703589379787445, 0.4668496251106262, -0.5343039631843567, 0.4983188211917877,...
javascript/reference/global_objects/date/getfullyear/index.md
JavaScript - Global Objects - Date - getFullYear - Syntax - Parameters: None.
[ -0.38004592061042786, 0.4261713922023773, -1.4433773756027222, -0.5309233665466309, -0.6190339922904968, -2.1550192832946777, 0.5853512287139893, 0.9068566560745239, -0.5239108204841614, -0.3632315695285797, -0.5178073644638062, 0.01213826984167099, -0.17223040759563446, 0.4824819564819336...
javascript/reference/global_objects/date/getfullyear/index.md
JavaScript - Global Objects - Date - getFullYear - Syntax - Return value: An integer representing the year for the given date according to local time. Returns `NaN` if the date is invalid.
[ -0.5922254920005798, 0.3211476802825928, -0.562145471572876, -0.19323988258838654, -0.4408305883407593, -2.4402830600738525, 0.5623084902763367, 0.6584482192993164, -0.7858516573905945, 0.5998703241348267, -0.9753108024597168, 0.8725502490997314, -0.49064216017723083, 0.6451084017753601, ...
javascript/reference/global_objects/date/getfullyear/index.md
JavaScript - Global Objects - Date - getFullYear - Description: Unlike `getYear()`, the value returned by `getFullYear()` 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 after...
[ -1.1976991891860962, 0.4409531354904175, -1.6009188890457153, 0.23215918242931366, -0.3767123818397522, -2.4161572456359863, -0.09632154554128647, 0.35404112935066223, -0.4826752245426178, 0.2753409445285797, -0.6750187873840332, 0.7670970559120178, -0.32755616307258606, 0.5770257711410522...