Results 1 to 5 of 5

Thread: Insert date format in SQL via ASP

  1. #1
    Join Date
    May 2009
    Posts
    857

    Insert date format in SQL via ASP

    Hi. This is a kind of problem that am facing. I have made a website with HTML and ASP as the front end parameter where ASP is the dynamic content page. Also the back end is SQL. The thing is that I want to transfer the Date format inserted in the static form and has to redirect through the asp page to the sql data field database. How is it possible? Can you please help me out.

  2. #2
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Insert date format in SQL via ASP

    You need to actually look into what sort of coding has been implemented to redirect the dynamic content to the data field of the database. The connectivity for SQL database to the ASP is by OLEDB provider that is by Microsoft which would lend in connecting the page to the database via mentioning the source path. You need to check out for the type or the format that is been inserted.

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Insert date format in SQL via ASP

    This is a clear issue related to the formatting of the date. The date does consists of 3 parameters and that is day, month, year. The format is basically in a specific form that would recommend us to make sure that what kind of pattern is been used. The SQL database might have a specific format may be like yy/mm/dd. And the data that you are trying to insert may be like dd/mm/yy. Check out for the following outputs. This might help you in letting to know the exact problem.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Insert date format in SQL via ASP

    The formatting issue is a big problem. You need to know well what kind of format does the sql database might take in. Basically the string values that has to be inserted in to the query database is quite set of an example. The example can be like mydate.Tostring("yy/mm/dd"). This is can be a format example that through which the Dynamic content can be redirected to the database.

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: Insert date format in SQL via ASP

    The getdate() method would actually set the stream for the same thing in sql server. The method is like "Insert into Table(name, date) values('ss',getdate())". This is a kind of format through which you can make the thing possible for adding the values to the database. You can make the necessary ailments to be fulfilled as per the information given.

Similar Threads

  1. How to insert automatic date in a website
    By Patrickboy in forum Software Development
    Replies: 8
    Last Post: 04-05-2012, 10:49 AM
  2. Replies: 10
    Last Post: 25-02-2012, 10:56 AM
  3. Way to insert a Date Picker in MS Excel cell
    By Chulbul Pandey in forum Windows Software
    Replies: 3
    Last Post: 11-12-2010, 12:55 AM
  4. How to insert last date in excel 2010
    By Calum in forum Windows Software
    Replies: 5
    Last Post: 18-02-2010, 12:07 AM
  5. Script insert date in the name of my file
    By Viensterrr in forum Software Development
    Replies: 4
    Last Post: 31-10-2008, 07:18 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,571,299.34874 seconds with 16 queries