Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. store datetime from C# code to SQL

store datetime from C# code to SQL

Scheduled Pinned Locked Moved C#
csharpdatabasehelpquestion
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Learning IT
    wrote on last edited by
    #1

    i am using datetime control to store datetime in sql,the format which i am using is creating problem in other systems but that was running perfectly in my system,what do i do? in aspx file datetime control is this-: in C# file date is send to sql like this-: using System.Globalization; IFormatProvider culture = new CultureInfo("fr-FR", true); DateTime dt = Convert.ToDateTime((DateTime.Parse((txt_dt.Text).ToString(), culture, DateTimeStyles.NoCurrentDateDefault)).ToString("MM/dd/yyyy"));

    Maniiiiiiiiiiiiiii

    M 1 Reply Last reply
    0
    • L Learning IT

      i am using datetime control to store datetime in sql,the format which i am using is creating problem in other systems but that was running perfectly in my system,what do i do? in aspx file datetime control is this-: in C# file date is send to sql like this-: using System.Globalization; IFormatProvider culture = new CultureInfo("fr-FR", true); DateTime dt = Convert.ToDateTime((DateTime.Parse((txt_dt.Text).ToString(), culture, DateTimeStyles.NoCurrentDateDefault)).ToString("MM/dd/yyyy"));

      Maniiiiiiiiiiiiiii

      M Offline
      M Offline
      Manas Bhardwaj
      wrote on last edited by
      #2

      This is considered as rude...

      Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

      L 1 Reply Last reply
      0
      • M Manas Bhardwaj

        This is considered as rude...

        Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

        L Offline
        L Offline
        Learning IT
        wrote on last edited by
        #3

        what does dat means???????

        Maniiiiiiiiiiiiiii

        J 1 Reply Last reply
        0
        • L Learning IT

          what does dat means???????

          Maniiiiiiiiiiiiiii

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          mnkh wrote:

          what does dat means

          hmm. according to google[^], its an acronym for "digital audio tape".

          L 1 Reply Last reply
          0
          • J J4amieC

            mnkh wrote:

            what does dat means

            hmm. according to google[^], its an acronym for "digital audio tape".

            L Offline
            L Offline
            Learning IT
            wrote on last edited by
            #5

            hahaha....

            Maniiiiiiiiiiiiiii

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups