begin process at 2012 02 10 20:11:25
  Trouver un code source :
 
dans
 
Accueil > 

Code

 > 

Application

 > ADDITION SUR UNE DATE

ADDITION SUR UNE DATE


 Information sur la source

Note :
Aucune note
Catégorie :Application Classé sous :Date, sum, day, jour, addition Niveau :Débutant Date de création :12/05/2009 Vu :3 766

Auteur : shyrachtz

Ecrire un message privé
Commentaire sur cette source (3)
Ajouter un commentaire et/ou une note

 Description

Dans cette petit application je vous représente la possibilité d'additionné des jours sur une date.
Il suffi d’editer une date, et le nombre des jours. Et l’application vous donne la novelle date
Amusez vous bien...

Source

  • /*
  • * dateAnalysing.java
  • * Created on May 12, 2009, 11:48:38 AM
  • */
  • import java.text.DateFormat;
  • import java.text.SimpleDateFormat;
  • import java.util.Calendar;
  • import java.util.Date;
  • import java.util.GregorianCalendar;
  • import javax.swing.JOptionPane;
  • public class dateAnalysing extends javax.swing.JFrame {
  • /** Creates new form dateAnalysing */
  • public dateAnalysing() {
  • initComponents();
  • }
  • @SuppressWarnings("unchecked")
  • // <editor-fold defaultstate="collapsed" desc="Generated Code">
  • private void initComponents() {
  • jLabel1 = new javax.swing.JLabel();
  • jLabel2 = new javax.swing.JLabel();
  • jLabel3 = new javax.swing.JLabel();
  • jLabel4 = new javax.swing.JLabel();
  • jLabel5 = new javax.swing.JLabel();
  • y1 = new javax.swing.JTextField();
  • m1 = new javax.swing.JTextField();
  • d1 = new javax.swing.JTextField();
  • nbj = new javax.swing.JTextField();
  • jLabel6 = new javax.swing.JLabel();
  • ndate = new javax.swing.JTextField();
  • jButton1 = new javax.swing.JButton();
  • reset = new javax.swing.JButton();
  • setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
  • setTitle("dates");
  • setAlwaysOnTop(true);
  • jLabel1.setText("date ");
  • jLabel2.setText("annee");
  • jLabel3.setText("mois");
  • jLabel4.setText("jour");
  • jLabel5.setText("nombre des jours");
  • y1.setText("2009");
  • nbj.setText("0");
  • jLabel6.setText("date finale:");
  • jButton1.setText("Work");
  • jButton1.addActionListener(new java.awt.event.ActionListener() {
  • public void actionPerformed(java.awt.event.ActionEvent evt) {
  • jButton1ActionPerformed(evt);
  • }
  • });
  • reset.setText("Reset");
  • reset.addActionListener(new java.awt.event.ActionListener() {
  • public void actionPerformed(java.awt.event.ActionEvent evt) {
  • resetActionPerformed(evt);
  • }
  • });
  • javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
  • getContentPane().setLayout(layout);
  • layout.setHorizontalGroup(
  • layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addGroup(layout.createSequentialGroup()
  • .addContainerGap()
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addGroup(layout.createSequentialGroup()
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  • .addGroup(layout.createSequentialGroup()
  • .addComponent(jLabel1)
  • .addGap(13, 13, 13))
  • .addGroup(layout.createSequentialGroup()
  • .addComponent(jLabel5)
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addGroup(layout.createSequentialGroup()
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addComponent(nbj, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
  • .addGroup(layout.createSequentialGroup()
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addComponent(d1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
  • .addComponent(jLabel4))
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addComponent(jLabel3)
  • .addComponent(m1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))))
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
  • .addComponent(jLabel2)
  • .addComponent(y1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))
  • .addGroup(layout.createSequentialGroup()
  • .addComponent(jButton1)
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  • .addComponent(reset))))
  • .addGroup(layout.createSequentialGroup()
  • .addGap(11, 11, 11)
  • .addComponent(jLabel6)
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  • .addComponent(ndate, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
  • .addGap(18, 18, 18))
  • );
  • layout.setVerticalGroup(
  • layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addGroup(layout.createSequentialGroup()
  • .addContainerGap()
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  • .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
  • .addComponent(jLabel3)
  • .addComponent(jLabel2))
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  • .addComponent(d1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  • .addComponent(jLabel1)
  • .addComponent(m1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  • .addComponent(y1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  • .addGap(3, 3, 3)
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  • .addComponent(nbj, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
  • .addComponent(jLabel5))
  • .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
  • .addComponent(jButton1)
  • .addComponent(reset))
  • .addGap(11, 11, 11)
  • .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
  • .addComponent(jLabel6)
  • .addComponent(ndate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
  • .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
  • );
  • pack();
  • }// </editor-fold>
  • private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
  • try{
  • int yy1=Integer.parseInt(y1.getText()),
  • mm1=Integer.parseInt(m1.getText()),
  • dd1=Integer.parseInt(d1.getText()),
  • nbj1=Integer.parseInt(nbj.getText());
  • String dy= y1.getText()+"/"+ m1.getText()+"/"+ d1.getText();
  • // Date s1=new Date(yy1,mm1,dd1);
  • Date s1=new Date(dy);
  • GregorianCalendar calendar = new java.util.GregorianCalendar();
  • calendar.setTime(s1);
  • calendar.add(Calendar.DATE, nbj1);
  • Date nouveau=calendar.getTime();
  • DateFormat dateFormat = new SimpleDateFormat("dd/MM/yy");
  • String result=dateFormat.format(nouveau);
  • ndate.setText(result);
  • }catch(Exception e){ JOptionPane.showMessageDialog(null,e.getMessage()); }
  • }
  • private void resetActionPerformed(java.awt.event.ActionEvent evt) {
  • y1.setText("2009");
  • m1.setText("");
  • d1.setText("");
  • nbj.setText("");
  • ndate.setText("");
  • }
  • /**
  • * @param args the command line arguments
  • */
  • public static void main(String args[]) {
  • java.awt.EventQueue.invokeLater(new Runnable() {
  • public void run() {
  • new dateAnalysing().setVisible(true);
  • }
  • });
  • }
  • // Variables declaration - do not modify
  • private javax.swing.JTextField d1;
  • private javax.swing.JButton jButton1;
  • private javax.swing.JLabel jLabel1;
  • private javax.swing.JLabel jLabel2;
  • private javax.swing.JLabel jLabel3;
  • private javax.swing.JLabel jLabel4;
  • private javax.swing.JLabel jLabel5;
  • private javax.swing.JLabel jLabel6;
  • private javax.swing.JTextField m1;
  • private javax.swing.JTextField nbj;
  • private javax.swing.JTextField ndate;
  • private javax.swing.JButton reset;
  • private javax.swing.JTextField y1;
  • // End of variables declaration
  • }
/*
 * dateAnalysing.java
 * Created on May 12, 2009, 11:48:38 AM
 */


import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.swing.JOptionPane;


public class dateAnalysing extends javax.swing.JFrame {

    /** Creates new form dateAnalysing */
    public dateAnalysing() {
        initComponents();
    }

 
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        y1 = new javax.swing.JTextField();
        m1 = new javax.swing.JTextField();
        d1 = new javax.swing.JTextField();
        nbj = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        ndate = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        reset = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("dates");
        setAlwaysOnTop(true);

        jLabel1.setText("date ");

        jLabel2.setText("annee");

        jLabel3.setText("mois");

        jLabel4.setText("jour");

        jLabel5.setText("nombre des jours");

        y1.setText("2009");

        nbj.setText("0");

        jLabel6.setText("date finale:");

        jButton1.setText("Work");
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        reset.setText("Reset");
        reset.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                resetActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel1)
                                .addGap(13, 13, 13))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jLabel5)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(nbj, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(d1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addComponent(jLabel4))
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(jLabel3)
                                            .addComponent(m1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE))))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLabel2)
                                    .addComponent(y1, javax.swing.GroupLayout.PREFERRED_SIZE, 39, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jButton1)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(reset))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(11, 11, 11)
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(ndate, javax.swing.GroupLayout.PREFERRED_SIZE, 135, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(18, 18, 18))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel3)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(d1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(m1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(y1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(3, 3, 3)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(nbj, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton1)
                    .addComponent(reset))
                .addGap(11, 11, 11)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel6)
                    .addComponent(ndate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {                                         
       
      
   try{

       int yy1=Integer.parseInt(y1.getText()),
           mm1=Integer.parseInt(m1.getText()),
           dd1=Integer.parseInt(d1.getText()),
           nbj1=Integer.parseInt(nbj.getText());
        
       String dy= y1.getText()+"/"+ m1.getText()+"/"+  d1.getText();

       // Date s1=new Date(yy1,mm1,dd1);
	       Date s1=new Date(dy);
     GregorianCalendar calendar = new java.util.GregorianCalendar();
    
     calendar.setTime(s1);
     calendar.add(Calendar.DATE, nbj1);

     Date nouveau=calendar.getTime();


DateFormat dateFormat = new SimpleDateFormat("dd/MM/yy");
String result=dateFormat.format(nouveau);
ndate.setText(result);
     

  
 }catch(Exception e){   JOptionPane.showMessageDialog(null,e.getMessage());   }
    }                                        

    private void resetActionPerformed(java.awt.event.ActionEvent evt) {                                      
        y1.setText("2009");
        m1.setText("");
        d1.setText("");
        nbj.setText("");
        ndate.setText(""); 
}                                     

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new dateAnalysing().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify
    private javax.swing.JTextField d1;
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JTextField m1;
    private javax.swing.JTextField nbj;
    private javax.swing.JTextField ndate;
    private javax.swing.JButton reset;
    private javax.swing.JTextField y1;
    // End of variables declaration

}



 Sources du même auteur

JEUX, ATTRAPER MOI
JEUX DEVINER LE MOT, POUR LES DÉBUTANTS EN JAVA.
JEUX XO INTELLIGENT POUR LES DÉBUTANTS EN JAVA.

 Sources de la même categorie

Source avec Zip Source avec une capture [J2ME] MAILXPRESS, UNE PETITE APPLICATION D'ENVOI DE MAIL ÉC... par doderic
Source avec Zip CLIENT ET SERVEUR DE MESSAGERIES par lemout
Source avec Zip Source avec une capture NAVIGATEUR HTTP par lemout
Source avec Zip Source avec une capture PROGRAMME DE PARTAGE DE FICHIER EN RESEAUX par billatosco
Source avec Zip JET SPRING JSF PRIMEFACES par mendjijet

 Sources en rapport avec celle ci

[JAVA] INTERVALLE ENTRE 2 DATES SANS COMPTER LES WEEKENDS par rodriguezc
TRAVAILLER AVEC DES JOURS/HEURES/MINUTES/SECONDES par FreddyONE73
Source avec Zip SÉLECTEUR DE DATES MULTIPLES, ORIGINE UHRAND par William44290
Source avec Zip TROUVER LE JOUR D'UNE DATE DANS LE PASSE par Timor
Source avec Zip CLASSE PERMETTANT DE RETROUVER LA DATE COMPLÈTE D'UN JOUR À ... par sesram

Commentaires et avis

Commentaire de DARKSIDIOUS le 13/05/2009 11:00:51 administrateur CS

Je trouve pas grand intérêt à ta source : il ne s'agit que de l'utilisation de la méthode add du Calendar. Du coup, si tu enlève tout le code de ton interface graphique, ton code se résume à ceci :

int yy1=Integer.parseInt(y1.getText()),
           mm1=Integer.parseInt(m1.getText()),
           dd1=Integer.parseInt(d1.getText()),
           nbj1=Integer.parseInt(nbj.getText());
        
       String dy= y1.getText()+"/"+ m1.getText()+"/"+  d1.getText();

       // Date s1=new Date(yy1,mm1,dd1);
       Date s1=new Date(dy);
     GregorianCalendar calendar = new java.util.GregorianCalendar();
    
     calendar.setTime(s1);
     calendar.add(Calendar.DATE, nbj1);

     Date nouveau=calendar.getTime();


DateFormat dateFormat = new SimpleDateFormat("dd/MM/yy");
String result=dateFormat.format(nouveau);
ndate.setText(result);

Bref, rien de bien transcendant. Tu devrais plutôt déposer ton code dans les snippets.
Ca peut être utile à ceux qui débutent à la limite (j'ai répondu dernièrement à un membre qui se posait cette question), mais c'est quand même très limité car déjà documenté dans la javaDoc.

Commentaire de Madvin le 13/05/2009 14:13:40

De plus tu as utilisé un logiciel WYSIWYG avec génération de code automatique n'est-ce pas ? Parce que le code IHM est totalement illisible ! >_< !

Commentaire de shyrachtz le 20/05/2009 07:33:42

Oui pour l'interface graphique, j'utilise le
netbeans 6.5.1,

Vous pouvez le télécharger suivant :
http://www.netbeans.org/downloads/index.html

 Ajouter un commentaire


Discussions en rapport avec ce code source dans le forum

date du lendemain [ par criss ] est- ce que vous avez une idee comment faire ce programme en console le plus simplement que possible?merci:Écrire un programme Java fournissant , à pa formater une date [ par arrriba ] Bonjour tous,J'ai une petite question pour une de mes applications en JSP, j'aimerais récupérer une variable date sous la forme du jour de l'anné. Par ajout d'une methode [ par babylonne ] Bonsoir tout le monde ,&nbsp; &nbsp; voil&#224; j'ai un ptit problem par rapport &#224; ce code source ie j'ai ajout&#233; une methode prochainJour() Comment obtenir l'année de la date du jour - URGENT [ par chyplie ] Bonjour j'aurais aimer savoir comment obtenir l'année de la date système, celle ci doit ensuite être accessible de toutes mes classes. Merci comment recuperer la date du jour en smalldatetime? [ par nahzhir ] Bonjour, pour mon appli java j'utilise SQLServer et je voudrais pour une requette avoir la date du jour au format smalldatetime. est ce que quelqu'un Ajouter un jour à une date [ par CharlEm80 ] Bonjour à tous,Question débile désolé mais comment ajoute-t-on un jour à la date du jour ?Moi je fais comme ceci :DELAY est un int et est égale à 7Str Récupérer la date de dernière mise à jour de la bdd [ par greglover ] Bonjour,je dois, pour mon programme java, récupérer la date de dernière mise à jour faite sur la base sur certains champs.je ne sais pas trop comment retourner le jour d'une date [ par mafyozi ] bjr tt le mondej'aimré bien savoir comment je doit fair pour retourner le jour d'une date saisi!!! en java bien sur!merci d'avance pour votre aide JNI + Eclipse [ par kcin ] Bonjour à tous.J'essaye depuis quelques jours d'apprendre le JAVA à l'aide d'un bouquin que je trouvé. Or j'ai un petit soucis lors de l'éxécution d'u comment afficher la date du jour en java? [ par sarita199 ] slt a tous, je suis une débutante en java et je vx afficher la date du jour en java et je ne sé pos comnet le faire,car je developpe avec dotnet et j'


Nos sponsors


Sondage...

CalendriCode

Février 2012
LMMJVSD
  12345
6789101112
13141516171819
20212223242526
272829    

Consulter la suite du CalendriCode

Photothèque

 
Développement réalisé par Nicolas SOREL (Nix) avec l'aide de : Cyril DURAND et Emmanuel (EBArtSoft), Merci à Vincent pour ses précieux conseils.
CodeS-SourceS.com© Toute reproduction même partielle est interdite sauf accord écrit du Webmaster
CodeS-SourceS.com© est une marque déposée tous droits réservés

Google Coop CodeS-SourceS Google Coop CodeS-SourceS
Temps d'éxécution de la page : 0,452 sec (3)

Nous contacter | Annoncer sur CodeS-SourceS | Mentions légales