Never had to deal with time issues before so i have a quick question, what is the best way to get the time and date from the client to the page.
This is what i am trying but no luck, the values of dt1 - 3 are not being considered integers. I tried using val() but the strings can be converted.
<!--- Parses the client's system time into hour, minutes and seconds for CF to create a readable time ---> <script language="JavaScript" type="text/javascript"> var today = Date(); date_parsed = today.split(" " ptime = date_parsed[3].split(":" </script>
<!--- Break down each array item into a CF variable ---> <cfset t_hour="<script language='JavaScript' type='text/javascript'>document.write(ptime[0])</script>"> <cfset t_minutes="<script language='JavaScript' type='text/javascript'>document.write(ptime[1])</script>"> <cfset t_seconds="<script language='JavaScript' type='text/javascript'>document.write(ptime[2])</script>">
<!--- Create a time object readable by CF ---> <cfset con_time = CreateTime(t_hour,t_minutes,t_seconds)>
This is what i am trying but no luck, the values of dt1 - 3 are not being considered integers. I tried using val() but the strings can be converted.
<!--- Parses the client's system time into hour, minutes and seconds for CF to create a readable time ---> <script language="JavaScript" type="text/javascript"> var today = Date(); date_parsed = today.split(" " ptime = date_parsed[3].split(":" </script>
<!--- Break down each array item into a CF variable ---> <cfset t_hour="<script language='JavaScript' type='text/javascript'>document.write(ptime[0])</script>"> <cfset t_minutes="<script language='JavaScript' type='text/javascript'>document.write(ptime[1])</script>"> <cfset t_seconds="<script language='JavaScript' type='text/javascript'>document.write(ptime[2])</script>">
<!--- Create a time object readable by CF ---> <cfset con_time = CreateTime(t_hour,t_minutes,t_seconds)>