Documentation of 'org.jfin.date.util.ISDADateFormat' Java class
ISDADateFormat
org.jfin.date.util

Class ISDADateFormat



  • public class ISDADateFormat
    extends java.lang.Object
    Utility class for formatting Calendars using the standard ISDA date format.
    • Constructor Summary

      Constructors 
      Constructor and Description
      ISDADateFormat() 
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method and Description
      static java.lang.String format(java.util.Calendar calendar)
      Efficient method to return a Calendar formatted as YYYY/M/D
      static java.lang.String formatCompact(java.util.Calendar calendar)
      Efficient method to return a Calendar formatted as YYYYMMDD; will always return an 8 character String
      static java.lang.String formatFixedLength(java.util.Calendar calendar)
      Efficient method to return a Calendar formatted as YYYY/MM/DD; will always return a 10 character String
      static java.lang.String formatFixedLength(java.util.Calendar calendar, java.lang.String delimeter)
      Efficient method to return a Calendar formatted as YYYYdelimeterMMdelimeterDD
      static java.util.Calendar parse(java.lang.String in)
      Parses a String of the format YYYY/MM/DD into a Calendar
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ISDADateFormat

        public ISDADateFormat()
    • Method Detail

      • format

        public static java.lang.String format(java.util.Calendar calendar)
        Efficient method to return a Calendar formatted as YYYY/M/D
        Parameters:
        calendar -
        Returns:
        A string representing the date in the calendar
      • formatFixedLength

        public static java.lang.String formatFixedLength(java.util.Calendar calendar)
        Efficient method to return a Calendar formatted as YYYY/MM/DD; will always return a 10 character String
        Parameters:
        calendar -
        Returns:
        A string representing the date in the calendar
      • formatCompact

        public static java.lang.String formatCompact(java.util.Calendar calendar)
        Efficient method to return a Calendar formatted as YYYYMMDD; will always return an 8 character String
        Parameters:
        calendar -
        Returns:
        A string representing the date in the calendar
      • formatFixedLength

        public static java.lang.String formatFixedLength(java.util.Calendar calendar,
                                                         java.lang.String delimeter)
        Efficient method to return a Calendar formatted as YYYYdelimeterMMdelimeterDD
        Parameters:
        calendar -
        Returns:
        A string representing the date in the calendar
      • parse

        public static java.util.Calendar parse(java.lang.String in)
                                        throws java.text.ParseException
        Parses a String of the format YYYY/MM/DD into a Calendar
        Parameters:
        in - The String to parse
        Returns:
        The Calendar for the given string
        Throws:
        java.text.ParseException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.