Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






createDateTime method

Creates a DateTime object that represents a specified date and time.

Defined in

Session

Syntax

public DateTime createDateTime(String date)

throws NotesException
public DateTime createDateTime(java.util.Date date)

throws NotesException
public DateTime createDateTime(java.util.Calendar date)

throws NotesException

Note This signature is new with Release 6.

Parameters

String date

The date and time you want the object to represent. See DateTime for formats. An invalid date-time or empty string results in an "Invalid date" exception.

java.util.Date date

The date and time you want the object to represent using a java.util.Date object.

java.util.Calendar date

The date, time, and time zone you want the object to represent using a java.util.Calendar object.

Return value

DateTime

The newly created date-time.

Usage

See DateTime for descriptions and examples.

Language cross-reference

CreateDateTime method in LotusScript NotesSession class

Related topics
Working with time




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009