Explore the community Forums Lectora Lectora Questions & Answers Use Current Date to Trigger Action Reply To: Use Current Date to Trigger Action

#368094 Score: 0
Profile photo of Stan Miller
Stan Miller
LUC16 Attendee
wise owl
curious george
friend finder
LUC17 Attendee
38 pts

Interesting. For me, CurrentDate displays “Thursday, August 8, 2017”. I’m guessing the value is based on the Windows default format for Long Date, but I haven’t tested to confirm.

In any case, once using JavaScript you can just use the JS Date() object as Tim as done. Alternatively, if there’s some benefit to using Lectora’s CurrentDate instead (I don’t see one, but I wouldn’t rule it out), this works:

var dt = new Date(VarCurrentDate.value);