Converting String to Text

John_WayneJohn_Wayne Member Posts: 3
edited 2008-08-20 in Navision Attain
Hi,

I hope you can help me, cause is have a string on this is a date like "01.08.08" then i modified this var because i need 4 places for the year like "01.08.2008". This is all fine but now i want to bring this string var into a date var and i dont know what i must do to success this step.
Do Anyone here know, how can i Convert a String var into a Date var?

MFG

Wayne

Comments

  • JEytonJEyton Member Posts: 33
    Hi!

    Check out this function:

    DMY2DATE(Day [, Month] [, Year])

    Use this function to return a Date based on a day, month, and year.
  • John_WayneJohn_Wayne Member Posts: 3
    Thank You... :D
  • kinekine Member Posts: 12,562
    Better will be to use EVALUATE(Text,Date)...
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
Sign In or Register to comment.