Follow Our FB Page << CircleMedia.in >> for Daily Laughter. We Post Funny, Viral, Comedy Videos, Memes, Vines...


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 write VB Script for selecting a particular row in a WebTable?

1 Answers   Patni,


Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 Answers  


Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?

0 Answers  


Write a Fucntion to close all Opened browser expect desired one?

2 Answers   Ness Technologies,


can anybody tell vb script code for alphanumeric and special character .which is used in qtp the name text field.

1 Answers  






How to find arry size in qtp vb script

2 Answers   Cap Gemini,


Explain about operator precedence in vb script?

0 Answers  


Hi, Can anyone please send me vb script examples to practice vb and also material to learn vb scripting in QTP? my email id : hareen_11@yahoo.com

0 Answers  


We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?

0 Answers  


how does vb script help in web page designing? explain with example.

0 Answers  


Mention how you can call vbscript functions?

0 Answers  


write a vb script to generate 3*3 matrix

2 Answers  






Categories