Java prog#44.How to save/insert date into SqLite(MySql) using Jdatechooser in Netbeans java

Sdílet
Vložit
  • čas přidán 27. 05. 2012
  • -----------------Online Courses to learn---------------------------
    Java - bit.ly/2H6wqXk
    C++ - bit.ly/2q8VWl1
    AngularJS - bit.ly/2qebsLu
    Python - bit.ly/2Eq0VSt
    C- bit.ly/2HfZ6L8
    Android - bit.ly/2qaRSAS
    Linux - bit.ly/2IwOuqz
    AWS Certified Solutions Architect - bit.ly/2JrGoAF
    Modern React with Redux - bit.ly/2H6wDtA
    MySQL - bit.ly/2qcF63Z
    ---------------------Follow--------------------------------------------
    My Website - www.codebind.com
    My Blog - goo.gl/Nd2pFn
    My Facebook Page - goo.gl/eLp2cQ
    Google+ - goo.gl/lvC5FX
    Twitter - / programmingknow
    Pinterest - goo.gl/kCInUp
    Text Case Converter - goo.gl/pVpcwL
    ------------------------Stuff I use to make videos ------------------
    Stuff I use to make videos
    Windows notebook - amzn.to/2zcXPyF
    Apple MacBook Pro - amzn.to/2BTJBZ7
    Ubuntu notebook - amzn.to/2GE4giY
    Desktop - amzn.to/2zct252
    Microphone - amzn.to/2zcYbW1
    notebook mouse - amzn.to/2BVs4Q3
    -----------------Facebook Links ---------------------------------------
    ProgrammingKnowledgeLear...
    AndroidTutorialsForBegin...
    Programmingknowledge
    CppProgrammingLanguage
    JavaTutorialsAndCode
    SQLiteTutorial
    UbuntuLinuxTutorials
    EasyOnlineConverter
    how can i insert date in yyyy-mm-dd format jdatechooser
    Creating a DateChooser Control with Java
    how to save date into database using jdatechooser in netbeans java
    netbeans java tutorial
    how to insert data from netbeans into database
    Insert information into a MySQL database - NetBeans - Java
    Insert Data Into Mysql Database Using Netbeans
    Insert Data Of Textfields In Database "netbeans"‎
    Insert Data Into Database Using Netbeans
    to insert, update and delete new data into mysql database using jbutton.
    How to insert data into database
    how to insert java.sql.data into database

Komentáře • 69

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  Před 8 lety +1

    Find More Codes On My Website - www.codebind.com/

  • @vinayraibole1096
    @vinayraibole1096 Před 6 lety

    Bhai tussi great ho, 3 din se date nahi aari thi, aaj 10 min me aayi, LOVE YOU

  • @piyushjain9229
    @piyushjain9229 Před 3 lety

    thanks bro i was struck how to add date to table..... u got a sub

  • @esideriofrancisco1568
    @esideriofrancisco1568 Před 11 lety +1

    Hi, firstly thank you for all the videos it helped me a lot.

  • @KartikeySharma0001
    @KartikeySharma0001 Před 8 lety

    Great Work Man u made my day...... :)

  • @brownie
    @brownie Před 10 lety

    Thanks man. I was looking for how to do that.

  • @prathameshsawant1062
    @prathameshsawant1062 Před 6 lety

    Useful video nice explanation

  • @TechAmr
    @TechAmr Před 11 měsíci

    Thanks For your vedio
    very helpfull

  • @seavfongyeun182
    @seavfongyeun182 Před 2 lety

    thank you so much for demo me about this.

  • @ricardoaugusto5844
    @ricardoaugusto5844 Před 9 lety

    Good. So you continun doing it brother.

  • @123japanuser
    @123japanuser Před 11 lety

    Well done Mate

  • @nugrahaadi4393
    @nugrahaadi4393 Před 8 lety +2

    shit man, thanks a Lot, you've got a new subscriber

  • @narutoelrey619
    @narutoelrey619 Před 8 lety

    awesome!!!! thanks :D

  • @anurag4548
    @anurag4548 Před 10 lety

    Thank You very much!!!

  • @mahmoudnjouokou9392
    @mahmoudnjouokou9392 Před 7 lety +1

    what is the date date type in the database ("date data type of varchar2)

  • @suleymanozdemir1003
    @suleymanozdemir1003 Před 4 lety +1

    thank you so much bro

  • @md.alamgirhossain5426
    @md.alamgirhossain5426 Před 7 lety

    Thats goooods,,thanks.......

  • @nickodela
    @nickodela Před 11 lety

    Hi, thank you for your videos, the are very helpfull. Could you please explain me what is the variable "pst" in this videos when you do the connection ??? where is declared? thank you very much. i will wait your answer.

  • @firadisaad8938
    @firadisaad8938 Před 7 lety

    thanks it is helpful

  • @MohamedAchehboune
    @MohamedAchehboune Před 10 lety +4

    Or you could use
    pst.setDate(2, new java.sql.Date(date.getDate().getTime()));
    You won't even have to change the DateChooser format .

    • @SageKing09816
      @SageKing09816 Před 6 lety

      What is pmt I know it is a variable but for what it is used

    • @TheOjTV15
      @TheOjTV15 Před 5 lety

      @@SageKing09816 PreparedStatement? i'm not sure

  • @aviksutar
    @aviksutar Před 10 lety

    how can i get the difference between two different dates set in two different jdatechooser ..plz help

  • @CesarSystem
    @CesarSystem Před 8 lety

    Thanks :)

  • @sohamrajput5021
    @sohamrajput5021 Před 6 lety

    gretely helping you are......
    but i've bite of problem......when i click on User_info table which show on interface its flag an error and don't show date into
    date chooser textField??????
    i hope you will give me my answer,promptly.

  • @JasperJohnZDocto
    @JasperJohnZDocto Před 4 lety

    Thanks a lot man

  • @abdullahsiraj3017
    @abdullahsiraj3017 Před 7 lety +1

    what will be the data type of date in mysql??

  • @wanamal92
    @wanamal92 Před 3 lety

    Thank you verymuch

  • @MattPadge87
    @MattPadge87 Před 7 lety

    And how to clean that JtextField after input data in database?

  • @zakarialakiri
    @zakarialakiri Před 11 lety

    Hello...you did great bro :)
    please help me..you did explained how to add Datechooser..
    but how to add Jcalendar..the full one?
    please help me..i do not know the code
    thnx in advance

  • @isugearon4510
    @isugearon4510 Před 11 lety

    Thank a lot for the tutorials. am now stack on program 44. because i get an error when using the JdateChooser. the line of code with an error is
    pp.setString(5,((JTextField)txt_date.getDateEditor().getUiComponent()).getText());
    the getDateEditor() gives an error. the Hint is cannot find symbol
    symbol: method getDateEditor()
    location: variable txt_date of type com.toedter.calendar.JDateChooser
    ----
    (Alt-Enter shows hints)
    What is the poblems sir?

  • @solracnauj19
    @solracnauj19 Před 8 lety

    Thanks XD

  • @lopezramirezulisesfrancisc8851

    necesito ayuda
    quiero que automaticamente me ponga las fechas,, pero que sean para las sigguientes semanas
    Por ejemplo:
    FECHA actual: 10/08/2016 Primer Semana: 17/08/2016,,, (pero que se ponga automaticamnte,,)
    No tengo mucha idea de como hacerlo

  • @avinash111able
    @avinash111able Před 12 lety +1

    i'm getting error at pst.setString(2,((JTextField)date.getDateEditor().getUiComponent()).getText());

  • @000nishat
    @000nishat Před 10 lety

    I want to select multiples Dates using JDateChooser & this selected dates are shown in a textfield.How can i do it??plz help me.

  • @charlieramos4349
    @charlieramos4349 Před 8 lety

    what are the things that i need to import?? for the calendar to work?

    • @ralpjeff8356
      @ralpjeff8356 Před 8 lety

      you need to download a jar file called jcalendar 1.4 and add it to your project :)

  • @TechAmr
    @TechAmr Před 11 měsíci

    if I pass null value from jDateChooser
    how can I code It?

  • @jerahpotter1656
    @jerahpotter1656 Před 3 lety

    TANGINAAAA THANK YOU 😭

  • @otomobildunyasi1135
    @otomobildunyasi1135 Před 9 lety +2

    ps.setStrıng(5, (JTextField)DOB.getDateEditor().get.UniComponent().getText());
    but it does not show up last part -getText()-
    JTextField cannot be converted to string
    help please

    • @elainearevalo-alejar9360
      @elainearevalo-alejar9360 Před 8 lety +3

      +otomobil dunyasi pst.setString(5, ((JTextField)DOB.getDateEditor().getUiComponent()).getText());
      you forgot to insert ")" after the getUiComponent()

    • @VincentJayBArana
      @VincentJayBArana Před 4 lety

      @@elainearevalo-alejar9360 still not solved. :(

  • @mariasabandoconforme4394

    y que proceso tiene él Jtextfield... ?

  • @esideriofrancisco1568
    @esideriofrancisco1568 Před 11 lety

    I need help on one thing, I'm trying to update the usage boozer and I'm not able to, can you please help me.

  • @ahmedabualqasim8717
    @ahmedabualqasim8717 Před 11 lety

    Hey I know this video post is old, but I would like to know on how to update MYSQL table using JDateChooser. I know how to insert a row using JDateChooser, but I do not know how to update a record usind JDateChooser. Could you please help me with it?

  • @kasaq786
    @kasaq786 Před 10 lety

    the problem is when i select month through date choser it shows anty random number like 34 in the JdateChooser text field . How to solve this problem

    • @behatreen.insaan
      @behatreen.insaan Před 6 lety

      You have wrongly mentioned default type set it as d/MM/YYYY not DD

  • @amaliadamayanti3958
    @amaliadamayanti3958 Před 7 lety

    How to select date from mysql to Jtabel java?

  • @miamipam100
    @miamipam100 Před 11 lety

    it gives me an error saying JTextField is not a variable??? any answer???

  • @erosexclu4578
    @erosexclu4578 Před 6 lety

    i tried this but i cant save it will always say java.lang.nullpointerexception

  • @excuse98
    @excuse98 Před 11 lety

    whats the data type of your date in your sql?

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  Před 11 lety

    DATETIME

  • @MariosN87
    @MariosN87 Před 10 lety

    it saves the month wrong ex i choose january and it saves 12th for month.Please help with that error.Thanks in advance

  • @mo4mark
    @mo4mark Před 9 lety

    i try use it on MS Access but i got error
    net.ucanaccess.jdbc.UcanaccessSQLException: data exception: invalid datetime format
    can anyone help ?
    thx for tutorial sir

    • @alamjamal
      @alamjamal Před 7 lety

      i am also..
      hav u find any soln???

  • @erosexclu4578
    @erosexclu4578 Před 6 lety

    hope you can help me sir. thanks

  • @waheedullahbabrakzai3820

    I have the same problem . Can somebody help us what is the problem and why does it give error in the getDateEditor() .
    and secondly how to clear the default date from datechooser textfield. when I insert a date into MySQL it gives an error that couldn't insert the date because it has time and day stamp as well ... Please help me regard this

  • @ShazadiHaji
    @ShazadiHaji Před 2 lety

    can someone please tell me what is pst code in

  • @lopezramirezulisesfrancisc8851

    and for hour??

  • @donghaiable
    @donghaiable Před 11 lety

    Can you show me how to seach Date through a buttom ????

  • @maclarenmaclarenn8426
    @maclarenmaclarenn8426 Před 11 lety

    how to insert Jcalendar in database

  • @excuse98
    @excuse98 Před 11 lety

    how about update not insert?

  • @excuse98
    @excuse98 Před 11 lety

    i hav an erro java.lang.nullpointerexception

  • @excuse98
    @excuse98 Před 11 lety

    how about update?

  • @varun513
    @varun513 Před 11 lety

    How to insert a date using jdatechooser in derby datebase

  • @avinash111able
    @avinash111able Před 12 lety

    at .getDateEditor

  • @CGPSC_Aspirant
    @CGPSC_Aspirant Před 4 lety

    2 min k kam to sala 10 ghante m btata h

  • @arsalanajmal
    @arsalanajmal Před 12 lety

    Thanks :)