Concatate Date and time values in a form and don't insert

I try to combine a date and value of a time value to a form in a datetime value submission and then insert it into a table of 8 SQL server data.

Here are the formats

Date: 07/03/2013

Time: 20:07

So somehow, I need to concatate these 2 elements and then insert the value combined with a SQL server 8 data table. (Datetime data type).

The inserted value should look like this

07-03-2013 20:07:00.000

No help my brothers dear cold fusion?

You probably want to use ParseDateTime to transform your two strings (concatenate them) into a date object.  See http://www.petefreitag.com/item/569.cfm for a useful example

Tags: ColdFusion

Similar Questions

  • I have a macbook pro and airport Time capsule and want to delate all data on Time capsule. How this is done

    I have a macbook pro and airport Time capsule and want to delate all data on Time capsule. How this is done

    Open Airport utility, select the Time Capsule and then use the option erase to erase its contents.

    How to check or erase a disc AirPort Time Capsule - Apple Support

  • Run insert data of time to master detail form

    When I click on the MasterInsert Button and choose the value lov, lov extract data from the database, but

    lov value cannot insert data into the database

    When I click on the Insert button master

    When I choose the value lov, lov extract data from the database

    My requirement is when I select value lov, lov retrieves data from the database when I click on the value of lov masterinsert button may not work as atuosubmit

    Sorry, but you have not answered the questions (and a post should be sufficient to answer three simple questions).

    A class has a name. How should we n´know what the largest number field that we see in the picture is the master lov?

    Why are you trying to use a client/server Listener on the button? If you do not want to display a lov use an inputText or an InputListOfValues.

    If you provide all the information, you can not expect us.

    Timo

  • You try to transfer data to new computer, takes about 30 minutes to collect data, and then told me that it will take 33 + hours of transfer

    I have 2 PC, two 40 g X 2 g, an old score about 12 GB of data, 71% free, new is ready to receive. When I make the connection with a null cable and start, it takes about 30 minutes to put together and start the transfer, but it gives a transfer time of 33 + hrs and that means, I let it run for about 6 hours, and he was always less than 6% of fact. No games or large, larger files is about 12 MB. Any help? Bob

    If cable "null", you hear a serial RS-232 cable, you probably chose the slowest method of data transfer possible.  A serial cable tops out at raw data of 115 Kbps (115 000 bits per second) rate the most current Ethernet 100 Mbit/s connection - is about 1000 times faster.

    I don't know why some s/w you use takes 30 minutes to "collect" information before starting the transfer, but if you have about 12 GB of data (and don't have / want an Ethernet connection), why not just get a big enough USB.  You can get a 8 GB USB key for less than $15 and a 16 GB for about $20.  If you have USB 2.0 (which is likely, unless your old computer is older than 10 years), the maximum raw data rate is 480 Mbps with rates effective data around 20-30 MB/s for the memory sticks.

    At 20 MB/s, 12 GB should be transferred in about 600 seconds or 10 minutes.

  • Form Validation failure: "value is not a date and time in the format"

    Hello world

    I am facing a weird problem in my custom OAF page. I'm displaying the records of a particular table through dynamic VO and dynamic array. All records appear correctly. But when I try to click on NEXT 10 records in a table, I get the error like "FAILED FORM VALIDATION: 1000 ORG CUST BO VERSION is not a date and time in the format. Just like in the screenshot below.

    DESKTOP.JPG

    Strange part of the question, if I select the columns to display not related to this day, so I only am not facing problems. If I select only dates to display and also am not facing this problem. If I use the mixture of this type varchar2 and data, I get this error.

    I tried to change the type of data but no use.

    If we close, look at the PARTY_ID error message trying to copy its data to ORG_CUST_BO_VERSION the last column. Why what's happening clue me less. Can anyone guide me on this please?

    The problem is that you use the same name for the creation of the MessageTextInputBean inside the Table.

    The name of MessageTextInputBean make it dynamic.

    ex: -.

    OAMessageTextInputBean oamessage = (OAMessageTextInputBean) createWebBean (pageContext,

    MESSAGE_TEXT_INPUT_BEAN,

    NULL,

    'text' + columnNo);

    See you soon

    AJ

  • Add the date and time to a text field when the form is submitted

    Is it possible to add the date and time to a text field where the user is clicking the button of form submit?

    I created a custom send form button and do not use the distribution process to collect the results and would like to have a time stamp of when the form has been sent.

    Thank you!

    Sure. Before your submit order add a command run JavaScript with this code:

    this.getField("SubmitDate").value = util.printd ("mm/dd/yyyy hh: mm", new Date());

    Change the field name or date that required such boss.

  • Insert the date and the current time in a form

    Feeling stupid here, but I can't seem to find a way to insert form fields that display the date and time of the currnet, I see where it is possible for a digital signature, but not what I need. It is a sign of customer in the worksheet. I want to know what date and time, the form is printed, without having to manually enter this data. Thank you.

    It is supposed to be a space between 'new' and 'Date '. If that doesn't fix it, I'll be happy to post a working example.

  • Is it really true that I can't view file creation date and time in the form of column bin?

    I need to sort my material by the date and time of creation of the file.

    It seems that this basic metadata more are missing in Premiere Pro

    I hope someone can point to my error here - otherwise, it's a MAJOR FAILURE by Adobe. Surely, after file name, it is the most "basic" bit of METADATA required from a file.

    Otherwise there is no solution workaround, other than the batch renaming clips at the finder level. (I tried the tags and comments at the research level, but can't seem to access it either)

    Hi Jim,.

    Unfortunately, even when these data are present for the clips, the ability to sort by these data is broken.

    It caused a lot of performance issues, then Yes, that it has been disabled.

    and they still haven't fixed yet.

    This is fixed in the next version. However, you must add the columns in the display of the metadata.

    Thank you

    Kevin

  • Problem with the registration date and time: only one date is recorded

    Hello community,

    I have the following problem:

    I automatically stores the datetime values in a date column "changed_on", whenever a user saves a form.

    Unfortunately, when I show this value in a form or report, only the correct date is shown. Still, the time is 00:00. There is no time in the database value, too.

    Whenever a user clicks the save button in my form, the value of "changed_on" is generated by a calculation that returns "sysdate" (see image below).

    I think I tried everything now, but I can't understand how to record the date and time correctly. I already tried the format for the changed_on field mask to my preferred format, but it does nothing (jj. MM YYYY HH24).

    How can I automatically record the date and time?

    You need two things.

    1. put the mask of the P3_CHANGED_ON element to JJ. MM YYYY HH24

    2. change your source of calculation to

    TO_CHAR (sysdate, ' DD.) MM YYYY HH24 ')

    In this way, what holds the element and implicit conversion happens when recording records will match.

    Thank you

    -Jorge

  • Working with date and time of the request for help from acrobat JavaScript...

    This coming from

    Working with date and time in Acrobat JavaScript (part 1 of 3)

    The following code adds five days to the current date, and then prints the new date in the console window.

    Get the date and time

    var rightNow = new Date();

    Get the value of millisecond

    Article date

    var msRightNow = rightNow.getTime ();

    Calculate in milliseconds, of 5 days

    5 days x 24 hours/day x 60 min / h x 60 s / min x 1000 ms/s

    Challenge of var = 5 * 24 * 60 * 60 * 1000;

    Do the calculation of var CFAbsoluteTime = msRightNow + challenge;

    Create a new Date from the calculated value

    var theNewDate = new Date (finalTime);

    In the actual work on a form code, you'll want to place the

    the object of a field value. But since this is test code, we will

    Print the result to the Console window (great for debugging)

    Console.println ("5 days from now is:" + theNewDate.toString ());

    The foregoing is the exact code (cut and paste)

    The error I get here is;

    ReferenceError: theNewDate is not defined

    1:Console:exec

    undefined

    To get the "undefined" question a lot... it seems to me, learn to distinguish the undefined 'of type' undefined 'variable' and undefined 'value '.

    in this case 'theNewDate' seems to be defined as a variable equal to the current date plus 5 days... BUT I am now "educated" enough to 'see' Why am I getting the error...


    Any thoughts... Any who...

    You need to highlight all the text that you want to run.

    You have not set the rightNow variable before you can apply a method to the variable.

    You can just add a new variable as msRightNow name. Why not use rightNow.

    Executes the code that you provided with a new departure of Acrobat, I get the following error messages:

    rightNow.getTime is not a function

    1:Console:exec

    TypeError: rightNow.getTime is not a function

    1:Console:exec

    undefined

    What you are showing probably works because your previous attempts have left behind them a variable "rightNow" and as long as you do not have the object of time date change too much, you will not notice the error.

    Cleaning of your code:

    get the number of milliseconds of the date object.

    rightNow var = (new Date()) .getTime ();

    define 5 days in milliseconds;
    Challenge of var = 5 * 24 * 60 * 60 * 1000;

    Add 5 days to the value of this moment and assign the result to the last time;
    var CFAbsoluteTime = rightNow + challenge;

    convert finalTime value in a date object.
    var theNewDate = new Date (finalTime);

    display the result;
    Console.println ("5 days from now is:" + theNewDate.toString ());

    Have you tried the code that I provided, it is another way to add days to the date object.

  • Default system date and time in a table

    Dear all,

    I packed as an array and I have an ENTERD_TIME column in a table. I want to enter the default system date and time of this column in a table.

    How can I display by default date and time in the ENTERD_TIME column in a table.
    Format Need
    
    DD-MON-YYYY HH:MIPM
    Thank you

    Under the attributes of tabular form > Type default enter the Expression PL/SQL and the default value to SYSDATE. Under 'Column attributes' set the HH:MIPM MON-DD-YYYY format.

    Denes Kubicek
    -------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Apress.com/9781430235125
    http://Apex.Oracle.com/pls/Apex/f?p=31517:1
    http://www.Amazon.de/Oracle-Apex-XE-Praxis/DP/3826655494
    -------------------------------------------------------------------

  • Date (date and time) with MySQL, register here!

    Hello

    Summary:

    I have a page (form) to capture traffic. It works, it allows the user to enter details of attendance. Click, he writes to the database - table. The date is not entered on the form. I want to date this stamp by inserting a date (date and time - declared field). I'll give you the source code. Please pin point what code I'd be inserting and assuming that everything in this code.

    Question:

    Insert the date and time in the database table-

    Code:

    <? php require_once('Connections/dbAttendance.php');? >

    <? PHP

    If (! function_exists ("GetSQLValueString")) {}

    function GetSQLValueString ($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")

    {

    If (via PHP_VERSION < 6) {}

    $theValue = get_magic_quotes_gpc()? stripslashes ($TheValue): $theValue;

    }

    $theValue = function_exists ("mysql_real_escape_string")? mysql_real_escape_string ($TheValue): mysql_escape_string ($theValue);

    Switch ($theType) {}

    case 'text ':

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "long":

    case "int":

    $theValue = ($theValue! = "")? intval ($TheValue): 'NULL ';

    break;

    case "double":

    $theValue = ($theValue! = "")? doubleVal ($TheValue): 'NULL ';

    break;

    case "date":

    $theValue = ($theValue! = "")? « " ». $theValue. "" "": "NULL";

    break;

    case "set":

    $theValue = ($theValue! = "")? $theDefinedValue: $theNotDefinedValue;

    break;

    }

    Return $theValue;

    }

    }

    $editFormAction = $_SERVER ['PHP_SELF'];

    If (isset {}

    $editFormAction. = « ? ». htmlentities($_SERVER['QUERY_STRING']);

    }

    If ((isset($_POST["MM_insert"])) & & ($_POST ["MM_insert"] == 'form')) {}

    $insertSQL = sprintf ("INSERT INTO attendlist (IDWindows, title, first name, name, mobile extension, jobrole, courses, GIC, mgrname, room) VALUES (%s, %s %s, %s, %s, %s, %s, %s, %s, %s, %s)", ")

    GetSQLValueString ($_POST ["'textfield"], "text").

    GetSQLValueString ($_POST ['select'], "text").

    GetSQLValueString ($_POST ['textfield2 "],"text").

    GetSQLValueString ($_POST ['textfield3'], "text").

    GetSQLValueString ($_POST ['textfield4'], "text").

    GetSQLValueString ($_POST ['textfield5'], "text").

    GetSQLValueString ($_POST ['choisies5'], "text").

    GetSQLValueString ($_POST ["select2"], "text").

    GetSQLValueString ($_POST ['select4'], "text").

    GetSQLValueString ($_POST ['textfield7'], "text").

    GetSQLValueString ($_POST ['select3'], "text"));

    @mysql_select_db ($database_dbAttendance, $dbAttendance);

    $Result1 = mysql_query ($insertSQL, $dbAttendance) or die (mysql_error ());

    $insertGoTo = "Thankyou.php";

    If (isset {}

    $insertGoTo. = (strpos ($insertGoTo, '?'))? « & » : « ? » ;

    $insertGoTo. = $_SERVER ['QUERY_STRING'];

    }

    header (sprintf ("location: %s", $insertGoTo));

    }

    @mysql_select_db ($database_dbAttendance, $dbAttendance);

    $query_rsAttendance = "SELECT * from attendlist";

    $rsAttendance = mysql_query ($query_rsAttendance, $dbAttendance) or die (mysql_error ());

    $row_rsAttendance = mysql_fetch_assoc ($rsAttendance);

    $totalRows_rsAttendance = mysql_num_rows ($rsAttendance);

    ? >

    < ! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > ""

    " < html xmlns =" http://www.w3.org/1999/xhtml ">

    < head >

    < meta http-equiv = "Content-Type" content = text/html"; charset = utf-8 "/ >"

    < title > delegate registry < /title >

    < link href = "Registerpage.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "SpryAssets/SpryValidationTextField.css" rel = "stylesheet" type = "text/css" / > "

    < link href = "SpryAssets/SpryValidationSelect.css" rel = "stylesheet" type = "text/css" / > "

    < script src = "SpryAssets/SpryValidationTextField.js" type = "text/javascript" > < / script > "

    < script src = "SpryAssets/SpryValidationSelect.js" type = "text/javascript" > < / script > "

    < / head >

    <? PHP

    $date = date ("format", $timestamp);

    ? >

    < body >

    < div class = "container" >

    < div class = "header" > < img src = "Identify Imperial2.jpg" width = "960" height = "150" alt = "" / > <! - end .header - > < / div > "

    < div class = "content" >

    Registry < H3 >: <? PHP echo "Date -".date("d/m/y - H:ia"). > < / h3 >

    < do action = "<?" PHP echo $editFormAction;? ">" method = "post" name = "form" >

    < table width = "780" border = "0" >

    < b >

    < td > < div align = "right" > user ID * < / div > < table >

    < td > < span id = "sprytextfield1" >

    < input name = "textfield" type = "text" id = "textfield" tabindex = "1" size = "18" maxlength = "10" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > title * < / div > < table >

    < td > < span id = "spryselect1" >

    < select name = "select" id = "select" tabindex = "2" >

    < option value = '0' > select < / option >

    < option value = "1" > Ms < / option >

    < option value = "2" > Ms < / option >

    < option value = "3" > Mdm < / option >

    < option value = "4" > Dr. < / option >

    < option value = "5" > Mr < / option >

    < option value = "6" > Professor < / option >

    < / select >

    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > name * < / div > < table >

    < td > < span id = "sprytextfield2" >

    < input name = "textfield2" type = "text" id = "textfield2" tabindex = "3" size = "30" maxlength = "30" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > family name * < / div > < table >

    < td > < span id = "sprytextfield3" >

    < input name = "textfield3" type = "text" id = "textfield3" tabindex = "4" size = "30" maxlength = "30" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > Contact / beep * < / div > < table >

    < td > < span id = "sprytextfield4" >

    < input name = "textfield4" type = "text" id = "textfield4" tabindex = "5" size = "30" maxlength = "30" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > Mobile no: (optional) < / div > < table >

    < td > < input name = "textfield5" type = "text" id = "textfield5" tabindex = "6" size = "20" maxlength = "20" / > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > function * < / div > < table >

    < td > < span id = "spryselect5" >

    < select name = "choisies5" id = "choisies5" tabindex = "7" >

    < option value = '0' > select < / option >

    < option value = "1" > doctor < / option >

    < option value = "2" > nurse IP < / option >

    < option value = "3" > nurse OP < / option >

    < option value = "4" > midwife < / option >

    < option value = "5" > booking clerk < / option >

    < option value = "6" > medical Secretary < / option >

    < option value = "7" > OP receptionist < / option >

    < option value = "9" > CNS/NP < / option >

    < option value = "10" > test < / option >

    < / select >

    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > manager name * < / div > < table >

    < td > < span id = "sprytextfield5" >

    < input name = "textfield7" type = "text" id = "textfield7" tabindex = "8" size = "30" maxlength = "30" / >

    < span class = "textfieldRequiredMsg" > a value is required. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > course * < / div > < table >

    < td > < span id = "spryselect2" >

    < select name = "select2" id = "select2" tabindex = "9" >

    < option value = '0' > select < / option >

    < option value = "1" > demo < / option >

    < option value = "2" > doctors < / option >

    < option value = "9" > CNS/NP < / option >

    < option value = "3" > nurse IP < / option >

    < option value = "4" > nurse OP < / option >

    < option value = "5" > midwife < / option >

    < option value = "6" > booking clerk < / option >

    < option value = "7" > medical Secretary < / option >

    < option value = "8" > OP receptionist < / option >

    < / select >

    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > location * < / div > < table >

    < td > < span id = "spryselect3" >

    < select name = "select3" id = "select3" tabindex = "10" >

    < option value = '0' > select < / option >

    < option value = "1" > CHX 12 floor Rm 1 < / option >

    < option value = "2" > CHX 12 Floor Rm 2 < / option >

    < option value = "3" > CHX 10 West < / option >

    < option value = "4" > HH N207 < / option >

    < option value = "5" > HH W12 Conference < / option >

    < option value = "6" > Rm SMH one < / option >

    < option value = "7" > Rm SMH b < / option >

    < option value = "8" > SMH Ming wing Rm 5 < / option >

    < option value = "9" > SMH Ming wing Rm 3 < / option >

    < / select >

    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "right" > GIC * < / div > < table >

    < td > < span id = "spryselect4" >

    < select name = "select4" id = "select4" tabindex = "11" >

    < option value = '0' > select < / option >

    < option value = "1" > GIC 1 - medicine < / option >

    < option value = "2" > GIC 2 - surgery and Cancer < / option >

    < option value = "3" > GIC 3 - specialized Services < / option >

    < option value = "4" > GIC 4 - Services circulatory and renal medicine < / option >

    < option value = "5" > GIC 5 - women and children < / option >

    < option value = "6" > GIC 6 - clinic and investigation Sciences < / option >

    < option value = "7" > GIC 7 - private Patients < / option >

    < option value = "8" > other < / option >

    < / select >

    < span class = "selectRequiredMsg" > please select an item. </span > < / span > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < input name = "button" type = "submit" id = "button" value = "Submit" / > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < div align = "center" > * mandatory fields < / div > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < /table >

    < input type = "hidden" name = "MM_insert" value = "form" / >

    < / make >

    <! - end content - > < / div >

    < div class = "footer" >

    < p align = "center" >

    " < a href =" http://validator.w3.org/check?URI=referer "> < img ".

          src=" http://www.w3.org/icons/valid-Xhtml10 "alt ="Valid XHTML 1.0"Transitional height ="31"width ="88"/ > < / a > "

    < p align = "center" > Cerner@Imperial ICT training team < /p >

    < /p >

    <! - end .footer - > < / div >

    <! - end .container - > < / div >

    < script type = "text/javascript" >

    var sprytextfield1 = new Spry.Widget.ValidationTextField ("sprytextfield1", "none", {validateOn: ["blur", "change"]});

    var spryselect1 = new Spry.Widget.ValidationSelect ("spryselect1", {validateOn: ["change", "blur"]});

    var sprytextfield2 = new Spry.Widget.ValidationTextField ("sprytextfield2", "none", {validateOn: ["blur", "change"]});

    var sprytextfield3 = new Spry.Widget.ValidationTextField ("sprytextfield3", "none", {validateOn: ["blur", "change"]});

    var sprytextfield5 = new Spry.Widget.ValidationTextField ("sprytextfield5", "none", {validateOn: ["blur", "change"]});

    var spryselect2 = new Spry.Widget.ValidationSelect ("spryselect2", {validateOn: ["change", "blur"]});

    var spryselect3 = new Spry.Widget.ValidationSelect ("spryselect3", {validateOn: ["change", "blur"]});

    var spryselect4 = new Spry.Widget.ValidationSelect ("spryselect4", {validateOn: ["change", "blur"]});

    var sprytextfield4 = new Spry.Widget.ValidationTextField ("sprytextfield4", "none", {validateOn: ["blur", "change"]});

    var spryselect5 = new Spry.Widget.ValidationSelect ("spryselect5", {validateOn: ["blur", "change"]});

    < /script >

    < / body >

    < / html >

    <? PHP

    mysql_free_result ($rsAttendance);

    ? >

    There are several ways. One is to get the date of the php time() function and use it in your insert statement. Another is to use the MySQL CURDATE () function. But probably the easiest and best are simply set the default value for the column of date / time than the current date/time and exclude it from the insert statement. No required code changes.

    http://dev.MySQL.com/doc/refman/5.0/en/timestamp-initialization.html

  • How to activate the historical record with date and time in EBS

    All,

    I created a custom form in 11.5.10 instance. The table on this form has all those which columns in it, and it is filled in the table of database as well as the date and time. But, when I go to the EBS and open the form and click on "Historical Record" it just shows the date of creation/update, but not this time.

    Can someone please give me an idea how to display time as well in the history of record?

    -VRDida

    The Important thingbis the type of data in the forms. If only one date, the part of hour is missing. If the Datetime, the timepart is there. Have you tried to check the values during execution by using the feature review?

  • Need to insert the Date and time with AM or PM

    StartDate form has ' 25/07/2006' and Starttime "13:07.
    I need to add this field in the database to display the Date and time with the AM or PM. But the result I get is false.
    <! - concatenate fields - >
    "< cfset Startdate = #Startdate # &" "& #starttime # >.

    < cfset startdate = #DateFormat (CreateODBCDateTime (Startdate), ' mm/dd/yyyy hh: mm: tt ') # >
    Here is my production. This is not the AM or PM conversion part of the chain.

    25/07/2006 01:07 am

    My database is SQL 2000

    You use any of dateformat. The createodbcdatetime sends the correct your DB value if you do it right.

  • Automatically set to the Date and time does not

    Date and time settings on my iPad Air set them automatically does not work? When I turn it out it will allow me to choose a city (Knoxville).

    When I turn it on with (location settings) it just turns and turns?

    Any ideas?

    Hello and welcome to Apple Support communities,

    This problem may be caused by a number of things, most often the cause is the device not being able to contact the time server. Here are the instructions from Apple supported for this problem, as well as a link to the appropriate article.

    Follow these steps, after each step:

    1. Make sure you have the latest version of iOS.
    2. Automatically turn on set in settings > general > Date & time. This will automatically put your date and time based on your time zone.
    3. Make sure that your time zone is set correctly. Tap Settings > general > Date & time > time zone.

    If you still have any questions affecting your date, time, or time zone, you can automatically disable in the settings > general > Date & time and manually set the time and time zone. Or contact your carrier.

    The option to enable the value automatically may not be available in all countries or all shells.

    If the time on your iOS device does not go after a sync with your computer, the computer may be time wrong. Check the time on your computer in system preferences > Date & time. You can select "Set date and time automatically."

    Support the Article HT203483

    Get help with the date and time on your iPhone, iPad and iPod touch - Apple Support

    Of course, if the time of your carrier server cannot connect the other option is to manually set the date and time until the carrier server are again available.

    Hope you helps out.

    Kind regards

    Peter.

Maybe you are looking for