Convert now (current date and time) to a string ddmmyyyyhhnn.

  • Thread starter Thread starter David Langschied
  • Start date Start date
D

David Langschied

I have been looking through the threads here on converting the current time
to a string and it seems to look a lot more complicated that it should be. I
am not a VB programmer (though a play one on TV). I have done alot of other
programming and it is usually as smiple as:

dateaschar = string(now, "mmddyyyyhhnn")

I realize that I may have to do that date and time separately.
 
Sub playOnTv()
dateaschar = Format(Now, "mmddyyyyhhnn")
MsgBox dateaschar
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top