Java Hour Format formatCreationDate(String creationDate)

Here you can find the source of formatCreationDate(String creationDate)

Description

format Creation Date

License

Open Source License

Declaration

static String formatCreationDate(String creationDate) throws ParseException 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.text.ParseException;
import java.text.SimpleDateFormat;

public class Main {
    static String formatCreationDate(String creationDate) throws ParseException {
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm");
        SimpleDateFormat jiraDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ");
        return simpleDateFormat.format(jiraDateFormat.parse(creationDate));
    }//from w  ww .ja  va 2  s  .co m
}

Related

  1. formatAsXsdDateTime(Date date)
  2. formatCalendarForXpath(Calendar date)
  3. formatCalTime(Date time)
  4. formatCapDate(Calendar cal)
  5. formatCompleteDate(Date date)
  6. formatCurrentDateForDebug()
  7. formatCurrentTime()
  8. formatCurrentTime()
  9. formatCurrentTime(final String format)