Application Security Testing: An Integral Part of DevOps
Each of the methods listed is self-explanatory. Let's look now at how to use some of them.
To display the date, you could use the following function:
It would display as: (Remember, the date is only as accurate as the settings in your user's computer system.)
Sounds a bit complicated but it's not. Once you get the hang of it, it's quite simple. Let's apply our knowledge of arrays and see how to spice it up:
It would display as:
See? It's actually quite simple. First we created a set of parallel arrays, one for the month and one for the day of the week. Since the array indexes are already assigned to the given months and days, we don't need to add "1" to the number. Next, we declared the variables and assigned values to them. Finally, we used a
document.write to format and display the date.
Let's look at some other ways to use the
Date() object methods.
IT Solutions Builder TOP IT RESOURCES TO MOVE YOUR BUSINESS FORWARD
Which topic are you interested in?
What is your company size?
What is your job title?
What is your job function?
Searching our resource database to find your matches...