Skip to content

Instantly share code, notes, and snippets.

@thejavalistener
Last active December 29, 2015 02:39
Show Gist options
  • Save thejavalistener/7602099 to your computer and use it in GitHub Desktop.
Save thejavalistener/7602099 to your computer and use it in GitHub Desktop.
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