does have quick tips on how calculate time - have managed successufully calculate time i'm having hard time deducting field (lunch hour).
????
????
you need understanding of date() object in javascript model.
some methods:
getdate() - day of month
getday() - day of week
gethours() - hour (0-23)
getminutes() - minutes
getseconds() - seconds
getmonth() - month (0-11)
getyear() - year
gettime() - time in full format
to produce today's date:
var today_date= new date()
var myyear=today_date.getyear()
var mymonth=today_date.getmonth()+1
var mytoday=today_date.getdate()
document.write("today's date is: ")
document.write(myyear+"-"+mymonth+"-"+mytoday)
some methods:
getdate() - day of month
getday() - day of week
gethours() - hour (0-23)
getminutes() - minutes
getseconds() - seconds
getmonth() - month (0-11)
getyear() - year
gettime() - time in full format
to produce today's date:
var today_date= new date()
var myyear=today_date.getyear()
var mymonth=today_date.getmonth()+1
var mytoday=today_date.getdate()
document.write("today's date is: ")
document.write(myyear+"-"+mymonth+"-"+mytoday)
More discussions in LiveCycle pre-ES (6.x and 7.x) discussions
adobe
Comments
Post a Comment