: Date : Development Flash / Flex / ActionScript examples
Ajax
Ajax Examples
Ajax Tutorials
Scripts and Programs
Javascript
Javascript Examples Tutorials
DHTML Tutorials
Javascript References
Scripts and Programs
HTML
HTML Tutorials
HTML References
HTML DOM 0 References
HTML DOM 2 References
CSS
CSS Tutorials
CSS References
PHP
PHP Source Code
PHP References
Scripts and Programs
C#
C# Source Code
C# Examples
Flash / Flex / ActionScript examples
»
Development
»
Date
»
Related Scripts with Example Source Code in same category :
Creating a Date Object
Making a Date Based on Epoch Milliseconds
Making a Date Based on Year or Month
Use four digit to construct the year field
Send the Date constructor a series of values for the year, month, day of the month, hour, minute, second, and millisecond to represent.
Hours are measured in 24-hour/military time, so they can range from 0 (12 a.m.) to 23 (11 p.m.).
Use an array of the proper names to translate directly
Create a Date object is by passing it a string representing a time.
Get date and month from a Date object
Use getUTCFullYear() to determine the UTC year that corresponds to a given local date
Use the getDate() and getUTCDate() methods to return the values of the local day of the month and the corresponding day of the month UTC, respectively.
getDay() or getUTCDay() methods return the day of the week as an integer from 0 to 6.
Getting the Hours, Minutes, Seconds, and Milliseconds
Call getter method of Date object
Get time
Getting the Time Zone Offset
setFullYear() method takes an integer parameter that is interpreted literally in all ranges, even 0 to 99.
Setting the Month
Setting the Date
Setting the Hours, Minutes, Seconds, and Milliseconds
Setting the Time
The toString() method is inherited from the Object class, and it returns a string representing the value.
UTC() is a method that returns the time value in milliseconds from midnight on January 1, 1970
Use UTC method to construct date object
using the Date class's static parse() method.
Leave a Comment / Note
Name (required)
email (will not be published) (required)
Website
Vérification
Refresh
Enter code
Verification is used to prevent unwanted posts (spam). .
Flash / Flex / ActionScript examples
Development
»
Date
ByteArray
Camera
Cross domain policy
Date format
Date
Drag Drop
Error
Event
FileReference
Focus Event
Group
KeyboardEvent
Math
Microphone
MouseEvent
MovieClip
MP3
Print
SharedObject
SimpleButton
Sound
SoundMixer
Sprite
SpriteAsset
Stage
StageAlign
StyleSheet
System.Capabilities
Trace Utilities
Trace
Animation
Array
Class
Data Type
Development
Function
Graphics
Language
Network
Regular Expressions
Statement
String
TextField
XML