javascript equiv to right(var,1)

wxdqz

New Member
Hi everyone...

I am trying to get the last portion of the current minute.

So far I have:

var now= new Date();
var m = now.getMinutes();


What I want to do in Javascript is the VB equivalent of:

right(m,1)

(the first character in the string from the right)

is there a Javascript equivalent for this?

I've been trying to play with substring() and substr() and slice(), but I'm getting only errors (... and frustrated... in that order. lol)

Ideas?

once again arguing with Javascript... and losing as usual...
k
 
Back
Top