Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: DATE
Topic Summary:
Created On: 12-Dec-2006 12:52
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 12-Dec-2006 12:52
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

Hello,
given a Date how can I extract the day month and year?
In VB you can do it like this:
If TypeName(aValue) = "Date" Then
    print Year(aValue)
    print Mont(aValue)   
    print Day(aValue)
End If

Has DXL such functions? I couldn't find them in the reference manual!

cheers
Mussie
Report this to a Moderator Report this to a Moderator
 12-Dec-2006 13:36
User is offline View Users Profile Print this message


Mussie Woldemicael

Posts: 95
Joined: 12-Sep-2006

OK I got it!
Report this to a Moderator Report this to a Moderator
 13-Dec-2006 10:02
User is offline View Users Profile Print this message


Rafal Dudycz

Posts: 13
Joined: 12-Jul-2005

Make sure what kind of date you have stored in variable!
You can store date together with time by using dateOf(int), e.g.:
Date d1 = dateOf(intOf(today))
print d1 "\n"

gives output:
12/13/06 10:47:26

Greetings
Rafal
Report this to a Moderator Report this to a Moderator
Telelogic DOORS » DXL Exchange » DATE

Topic Tools Topic Tools
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.