You can get current time by below code, m not sure about AM/PM store | javascript{(new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds())} | time echo | ${time}
what it is returning??are you getting javascript{(new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds())} as o/p?? If yes, check for spacing at the end.
How would I get AM/PM with the Current Time?
ReplyDeleteYou can get current time by below code, m not sure about AM/PM
ReplyDeletestore | javascript{(new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds())} | time
echo | ${time}
where it show Time , I used same command but unable to see current time .....
ReplyDeletewhat it is returning??are you getting javascript{(new Date().getHours()+" : " + new Date().getMinutes() + " : " + new Date().getSeconds())} as o/p??
ReplyDeleteIf yes, check for spacing at the end.
Hi all i need time like Tue 25 Sep 2012. could you please help me.
ReplyDeletewhat is the code to get the one month later date in dd-mm-yyyy format.
ReplyDeleteconvert datetime to 12 hours AM/PM format
ReplyDeletehttp://allinworld99.blogspot.in/2014/07/get-am-pm-from-datetime-javascript.html
convert datetime to 12 hours AM/PM format
ReplyDeleteConvert to AM/PM format From DateTime
Is there a way to get 24 hour time? i.e. 0600, 1425?
ReplyDeletereally I need YearMonthDayTime. What would I do to put that in Selenium IDE? Not javascript.
ReplyDelete