Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21264

Date format in VBS script

$
0
0
Hi,

I have no knowledge in VBS.

I use a small application named Clavier+ (Keyboard+)
Such application allows to assign a VBS script to a hotkey.

As an example the following short VBS script can be assigned to a hotkey :
set shell = WScript.CreateObject("WScript.Shell")
shell.SendKeys Date()

So when pressing the assigned hotkey, the date is pasted into the current opened document.
But the date format is not the one I would like to have

My wish would be to have the here after format : dd/mm/yy.

So, how the VBS script has to be amended to get the expected date format ?

Another question is the following :
What would be the VBS script to paste, not the current date, but the date of the day before ?

Thank you in advance for any help in this matter.

Patrick

Viewing all articles
Browse latest Browse all 21264

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>