Read the article this discussion is about
This archived discussion is "read only".
For the corresponding "live" discussions, post in the active topic forum here.
» mdehnel - Date and Time Combined
Is there a proper way to combine date and timeIf I have strings for
mydate August 23, 2001
and
mytime 1:20:00 AM
can I combine them into 1?
I get and error when I try
CDate(08/23/2001 1:20:00 AM)
however Now() and FormatDate(Now(),0)
returns a valid date
what is the format for the combined date and time?
-- posted by mdehnel
» kmaxim - Re: Date and Time Combined
In response to message posted by mdehnel:Thank you for your question. You can combine date and time in one string using string concatenation (&). Consider the following example:
mydate=date() 'Getting system date
mytime=time() 'Getting system time
mydatetime=mydate & mytime 'String concatenation
mydatetime=cdate(mydatetime) 'Using the CdDate() function
document.write mydatetime 'Displaying the result
-- posted by kmaxim
» akidi - OUTLOOK APPLICATION USING VBSCRIPT
Hello All,> Thankx for your anticipated assistance.
> N.B:
> Please I just need the instructions on how to start and continue
-- posted by akidi
Please follow the guidelines set forth in the Suite101 Posting Etiquette when adding to the discussion.