cannot join datetime value based on spesific time

yonhantdaenta89@hotmail.com
Member Posts: 52
hi Expert,
I cannot create a value for datetime3 based on this code
date3 := DT2DATE("Somedate");
time3 := 150000T;
datetime3 := CREATEDATETIME(date3,time3);
I need to set a specific somedate to 3PM
the error says that the date was invalid
any ideas ?
thanks,
I cannot create a value for datetime3 based on this code
date3 := DT2DATE("Somedate");
time3 := 150000T;
datetime3 := CREATEDATETIME(date3,time3);
I need to set a specific somedate to 3PM
the error says that the date was invalid
any ideas ?
thanks,
0
Best Answer
-
Hi,
For DT2DATE you should pass DateTime as parameter.
Date3 := DT2DATE(CURRENTDATETIME)
CREATEDATETIME(Date3,150000T)
7
Answers
-
Hi,
For DT2DATE you should pass DateTime as parameter.
Date3 := DT2DATE(CURRENTDATETIME)
CREATEDATETIME(Date3,150000T)
7 -
Sowkarthika wrote: »Hi,
For DT2DATE you should pass DateTime as parameter.
Date3 := DT2DATE(CURRENTDATETIME)
CREATEDATETIME(Date3,150000T)
still cannot work. that "somedate" was a datetime value
0 -
your somedate seems to be blank
assign value to it before using in DT2DATE0 -
Hi,
Check if the Date parameter that you are passing to the CREATEDATETIME function is valid.1 -
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions