search
Login

Categories


C Books Guide and List
C++ Books Guide and List
Best Java Books

3.8k questions

4k answers

117 comments

10.7k users

0 votes
16 views
asked Guru 24.6k points 29 52 81

1 Answer

0 votes
The date() function provides you with a means of retrieving the current date and time, applying the

format integer parameters indicated in your script to the timestamp provided or the current local time

if no timestamp is given. In simplified terms, passing a time parameter is optional - if you don't, the

current timestamp will be used.
answered Guru 39.1k points 10 21 33

Related questions

0 votes
1 answer 18 views
18 views
asked felin Advisor 8.4k points 10 15 18
0 votes
2 answers 29 views
29 views
When I create a new Date object, it is initialized to the current time but in the local timezone. How can I get the current date and time in GMT?
asked john Guru 27.1k points 31 50 97
0 votes
1 answer 17 views
17 views
asked sara Guru 24.6k points 29 52 81
1 vote
1 answer 17 views
17 views
How to convert date to timestamp in PHP? How do I get timestamp from e.g. 22-09-2008?
asked denis Sr Member 2.7k points 14 29 61
0 votes
1 answer 9 views
9 views
asked omari Sr Member 3.9k points 5 8 12
...