VBScript Date yufa
dingyi da yongfa
Date yufa kaiya kaiciwa taimi da tari na taimi.
yufa
Date
tushin da kisan
kwarin dake:
idake, baiwa kaiya, yinwa Date, Time da Now, Now = Date + Time, amma, a kaiya, amma a kaiya wa, kaiya DateVale da TimeValue, kaiya kaiciwa taimi da tari.Example: Obtain the date and time of a certain time point:
N = Now 'The date and time of this time point D = Datevalue(N) 'The date part of the same time point T = TimeValue(N) 'The time part of the same time point D2 = Date 'Time point 1's date T2 = Time 'Time point 2's time
Question Thinking
What is the maximum possible error when executing Response.write Now and Response.Write Date + Time continuously? Assumptions:
The Now obtained from 'time point 1' = #7/1/95 23:59:59# The Date obtained from 'time point 2' = #7/1/95#
And if the 'time point 3' just crosses a day, then Time = #0:00:00, so the difference between Now and Date+Time becomes 23:59:59.
Instance
Example 1
document.write("The current system date is: ") document.write(Date)
Output:
The current system date is: 1/14/2002
TIY
- Date
- How to use the Date function to display the current date.