General information
Category:
Coding, syntax & commands
Environment versions
Network:
Windows 2008 Server
Likes (1)
Naomi Nosonovsky
>Why would a command such as:
>? ctod("10/13/15")
>give me the following result?
>10/13/2115
>In other words, next century instead of the current century.
>
>I am trying to import data from a text file, and thought ctod() would be a quick solution. Actually the dates seem to include a century, so the question might be irrelevant for this particular task, but I was still curious what I did wrong.
>
>Here are some relevant settings (Visual FoxPro 9):
>set("date") = "AMERICAN"
>set("century") = "ON"
>set("century", 1) = 20
>set("century", 2) = 65
>set("century", 3) = 2029 && what the heck does this do?
Time for an extremely stupid question -- is there any particular reason why you have
SET CENTURY TO 20
instead of
SET CENTURY TO 19
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only