Java Time Now getNow()

Here you can find the source of getNow()

Description

get Now

License

Apache License

Declaration

public static String getNow() 

Method Source Code


//package com.java2s;
//License from project: Apache License 

import java.text.*;
import java.util.*;

public class Main {
    private static final DateFormat FORMATTER = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ");

    public static String getNow() {
        return FORMATTER.format(Calendar.getInstance().getTime());
    }//from  w w w  .  ja v  a2  s  . c  o m
}

Related

  1. getNow()
  2. getNow()
  3. getNow()
  4. getNow()
  5. getNow()
  6. getNow()
  7. getNow()
  8. getNow()
  9. getNow()