var dt1 = "@@patient.lab_result.Plt.date@@";
// take off last character
dt1 = dt1.substring(0,-1);
// keep just the first 19 characters
dt1 = dt1.substring(0,19);
// jQuery $.trim() function
dt1 = $.trim(dt1);Can you post both your code and the generated html?
From: heo-i...@googlegroups.com [mailto:heo-i...@googlegroups.com] On Behalf Of Scantron
Sent: Friday, March 15, 2013 5:57 PM
To: heo-i...@googlegroups.com
Subject: Re: Working with dates
Hey guys!
--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to heo-iforms+...@googlegroups.com.
To post to this group, send email to heo-i...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/y7vPy47k_oMJ.
Hi Michael-
What happens when you put “\” after the vgr variable? Like:
var dt2 = new Date(Date.parse("@@Protime.date@@\"));
Jason
--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to heo-iforms+...@googlegroups.com.
To post to this group, send email to heo-i...@googlegroups.com.
var myDate = '@@myLabDate@@';<span id="myLabDate">@@myLabDate@@</span>// If you use jQuery
var myDate = $.trim($('#myLabDate').text());
// If you don't use jQuery
var myDate = document.getElementById('myLabDate').innerHTML.replace(/\n/g,'');--
You received this message because you are subscribed to the Google Groups "HEO iForms" group.
To unsubscribe from this group and stop receiving emails from it, send an email to heo-iforms+...@googlegroups.com.
To post to this group, send email to heo-i...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/heo-iforms/-/HMFMKYxlPIsJ.