datetext

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • shif

    #1

    datetext

    Hi
    How can i customise textbox control to feed date in the format "dd/mm/yyyy".
    --
    Thanks
  • Cor Ligthert [MVP]

    #2
    Re: datetext

    Shif,

    Your data (dates) can be read in any format as long as it is confirm the
    standards of the country settings.

    The format you show now (unerstanding it is dd/MM/yyyy) is used in by
    instance:
    - complete Europe
    - almost complete America except the USA and I thought by instance
    Mexico and Puorto Rico
    - almost complete Africa
    - parts of Asia (western and nothern parts)

    Therefore tell something more about that?

    Cor


    "shif" <ns_0001@hotmai l.com> schreef in bericht
    news:92330E92-D097-4195-A304-B6A487F00829@mi crosoft.com...[color=blue]
    > Hi
    > How can i customise textbox control to feed date in the format
    > "dd/mm/yyyy".
    > --
    > Thanks[/color]


    Comment

    • Cor Ligthert [MVP]

      #3
      Re: datetext

      Shif,

      Maybe do you miss this

      dim myDate as DateTime = CDate(textbox.t ext)

      Cor

      "shif" <ns_0001@hotmai l.com> schreef in bericht
      news:92330E92-D097-4195-A304-B6A487F00829@mi crosoft.com...[color=blue]
      > Hi
      > How can i customise textbox control to feed date in the format
      > "dd/mm/yyyy".
      > --
      > Thanks[/color]


      Comment

      • shif

        #4
        Re: datetext

        sir my problem is that,i have a small invoice screen and i want to get
        invoice date throuh textbox control,how can i set the mask like 00/00/0000
        and dd/mm/yyyy format,i had tried datetime picker but user has to press arrow
        key to move from dd part to mm part,when more invoices are there its
        difficult to feed date.in visualbasic textbox has dataformat property for
        setting date format.in .net how can i do this, please help
        --
        Thanks


        "Cor Ligthert [MVP]" wrote:
        [color=blue]
        > Shif,
        >
        > Maybe do you miss this
        >
        > dim myDate as DateTime = CDate(textbox.t ext)
        >
        > Cor
        >
        > "shif" <ns_0001@hotmai l.com> schreef in bericht
        > news:92330E92-D097-4195-A304-B6A487F00829@mi crosoft.com...[color=green]
        > > Hi
        > > How can i customise textbox control to feed date in the format
        > > "dd/mm/yyyy".
        > > --
        > > Thanks[/color]
        >
        >
        >[/color]

        Comment

        • Claes Bergefall

          #5
          Re: datetext

          Actually, that format is not used all over Europe. Some countries (Sweden
          for instance) uses the reverse order yyyy-MM-dd

          /claes

          "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
          news:%23Ebgzkdl GHA.1344@TK2MSF TNGP03.phx.gbl. ..[color=blue]
          > Shif,
          >
          > Your data (dates) can be read in any format as long as it is confirm the
          > standards of the country settings.
          >
          > The format you show now (unerstanding it is dd/MM/yyyy) is used in by
          > instance:
          > - complete Europe
          > - almost complete America except the USA and I thought by instance
          > Mexico and Puorto Rico
          > - almost complete Africa
          > - parts of Asia (western and nothern parts)
          >
          > Therefore tell something more about that?
          >
          > Cor
          >
          >
          > "shif" <ns_0001@hotmai l.com> schreef in bericht
          > news:92330E92-D097-4195-A304-B6A487F00829@mi crosoft.com...[color=green]
          >> Hi
          >> How can i customise textbox control to feed date in the format
          >> "dd/mm/yyyy".
          >> --
          >> Thanks[/color]
          >
          >[/color]


          Comment

          • Cor Ligthert [MVP]

            #6
            Re: datetext

            Shif

            How do you write normally a date in your country?

            Cor

            "shif" <ns_0001@hotmai l.com> schreef in bericht
            news:EC5D3AFF-2018-4250-91BC-FB93D54E3572@mi crosoft.com...[color=blue]
            > sir my problem is that,i have a small invoice screen and i want to get
            > invoice date throuh textbox control,how can i set the mask like 00/00/0000
            > and dd/mm/yyyy format,i had tried datetime picker but user has to press
            > arrow
            > key to move from dd part to mm part,when more invoices are there its
            > difficult to feed date.in visualbasic textbox has dataformat property for
            > setting date format.in .net how can i do this, please help
            > --
            > Thanks
            >
            >
            > "Cor Ligthert [MVP]" wrote:
            >[color=green]
            >> Shif,
            >>
            >> Maybe do you miss this
            >>
            >> dim myDate as DateTime = CDate(textbox.t ext)
            >>
            >> Cor
            >>
            >> "shif" <ns_0001@hotmai l.com> schreef in bericht
            >> news:92330E92-D097-4195-A304-B6A487F00829@mi crosoft.com...[color=darkred]
            >> > Hi
            >> > How can i customise textbox control to feed date in the format
            >> > "dd/mm/yyyy".
            >> > --
            >> > Thanks[/color]
            >>
            >>
            >>[/color][/color]


            Comment

            • Cor Ligthert [MVP]

              #7
              Re: datetext

              Claes,

              I am always glad to hear that, that format is called the ISO format, it was
              used in all former communist countries after the last world war as well, I
              don't know which still are usting that. That I wrote complete Europa is a
              writting mistake, normally I write almost, because I don't know how some far
              East European countries do it as well.

              But I find it nice to hear that Sweden is one of those using ISO of course
              the best format to represent a date.

              Cor


              "Claes Bergefall" <louplou@nospam .nospam> schreef in bericht
              news:esPcynhlGH A.4716@TK2MSFTN GP04.phx.gbl...[color=blue]
              > Actually, that format is not used all over Europe. Some countries (Sweden
              > for instance) uses the reverse order yyyy-MM-dd
              >
              > /claes
              >
              > "Cor Ligthert [MVP]" <notmyfirstname @planet.nl> wrote in message
              > news:%23Ebgzkdl GHA.1344@TK2MSF TNGP03.phx.gbl. ..[color=green]
              >> Shif,
              >>
              >> Your data (dates) can be read in any format as long as it is confirm the
              >> standards of the country settings.
              >>
              >> The format you show now (unerstanding it is dd/MM/yyyy) is used in by
              >> instance:
              >> - complete Europe
              >> - almost complete America except the USA and I thought by instance
              >> Mexico and Puorto Rico
              >> - almost complete Africa
              >> - parts of Asia (western and nothern parts)
              >>
              >> Therefore tell something more about that?
              >>
              >> Cor
              >>
              >>
              >> "shif" <ns_0001@hotmai l.com> schreef in bericht
              >> news:92330E92-D097-4195-A304-B6A487F00829@mi crosoft.com...[color=darkred]
              >>> Hi
              >>> How can i customise textbox control to feed date in the format
              >>> "dd/mm/yyyy".
              >>> --
              >>> Thanks[/color]
              >>
              >>[/color]
              >
              >[/color]


              Comment

              Working...