what is the function to display current date?

Answers were Sorted based on User's Feedback



what is the function to display current date?..

Answer / satya

You can use Date functions for this
ex-
1. Msgbox Date() or Msgbox Date
this will Returns the current system date.

2. MsgBox now() or MsgBox now
will Returns the current system date and Time.

3. MsgBox Time() or MsgBox Time
Returns - the current system time

Here is the list of All Date and Time Functions for
Reference.
Function -------> Description

CDate -Converts a valid date and time expression to the
variant of subtype Date
Date - Returns the current system date
DateAdd -Returns a date to which a specified time interval
has been added
DateDiff- Returns the number of intervals between two dates
DatePart- Returns the specified part of a given date
DateSerial- Returns the date for a specified year, month,
and day
DateValue - Returns a date
Day Returns- a number that represents the day of the month
(between 1 and 31, inclusive)
FormatDateTime - Returns an expression formatted as a date
or time
Hour - Returns a number that represents the hour of the day
(between 0 and 23, inclusive)
IsDate - Returns a Boolean value that indicates if the
evaluated expression can be converted to a date
Minute - Returns a number that represents the minute of the
hour (between 0 and 59, inclusive)
Month - Returns a number that represents the month of the
year (between 1 and 12, inclusive)
MonthName - Returns the name of a specified month
Now - Returns the current system date and time
Second - Returns a number that represents the second of the
minute (between 0 and 59, inclusive)
Time Returns - the current system time
Timer Returns - the number of seconds since 12:00 AM
TimeSerial - Returns the time for a specific hour, minute,
and second
TimeValue - Returns a time
Weekday - Returns a number that represents the day of the
week (between 1 and 7, inclusive)
WeekdayName - Returns the weekday name of a specified day
of the week
Year - Returns a number that represents the year

Is This Answer Correct ?    3 Yes 0 No

what is the function to display current date?..

Answer / cybergh0st

what language?

Is This Answer Correct ?    1 Yes 0 No

what is the function to display current date?..

Answer / nitin

You can use function -- today()

Is This Answer Correct ?    1 Yes 0 No

what is the function to display current date?..

Answer / ranjan garg

document.write("The current system date is: ")
document.write(Date)

Is This Answer Correct ?    1 Yes 4 No

Post New Answer

More VB Script Interview Questions

How to make sure that items in a wintree are sorted al?

0 Answers   Ness Technologies,


write a program to display configuration of a local system with the help of vb script.

0 Answers  


What is select case statement?

0 Answers  


what is resorceallocation

0 Answers  


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

0 Answers   Quest,


We have an application which is built using multiple technologies and are using QTP as the tool for Automating the same. While we spy over a combo box in this application, we get the object name as a "Combo Control" and we are not able to perform any action over this object in either selecting or checking any method for the same like "Exist" etc. Hence we thought of a solution and the same can be found below

0 Answers  


How to scroll down a page while recording in qtp. suggest me any method apart from low level recording.

0 Answers  


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

0 Answers  


Have any one know about Test Complete 6, please let me know. If any one have good material regarding Test Complete 6, Please send to my mail id: cns.praveen@gmail.com

1 Answers  


Mention what is vbscript?

0 Answers  


What is the difference between do until loop and do while loop?

0 Answers  


how do you make the variable declaration mandatory?what is the use of "option explicit"?

2 Answers  


Categories