Last active
December 29, 2015 02:39
-
-
Save thejavalistener/7602099 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.thejavalistener.post.fechas; | |
import com.thejavalistener.util.UDate; | |
public class UDateTest | |
{ | |
public static void main(String[] args) | |
{ | |
// obtengo la fecha de hoy y la muestro | |
String hoy = UDate.now(); | |
System.out.println(hoy); | |
// le sumo 10 dias y muestro el resultado | |
int nDias = 10; | |
String sum = UDate.addDays(hoy,nDias); | |
System.out.println(sum); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment