VBA --- JS Converter is not converting the VBA inbuilt functions to javascript
object.
VBA functions details can be found at :
http://msdn.microsoft.com/en-us/library/3ca8tfek%28VS.85%29.aspx
Javascript Objects http://www.w3schools.com/JS/js_obj_date.asp
Example:
VBA code:
Dim MyVar
MyVar = Now ' This will return the current date and time
Java script:
var d = new Date(); // This will return the date object, which will have the
current date and time. display Format (date and time) is different.
It's very easy to subtract, from the current date in VBA, but it is bit
difficult to subtract, from the current date in JavaScript.
eg:
VBA code:
MsgBox (Now -1)
But we cannot perform
alert(d-1)
Original issue reported on code.google.com by nikhilsi...@google.com on 8 Jun 2010 at 9:49
Original issue reported on code.google.com by
nikhilsi...@google.com
on 8 Jun 2010 at 9:49