If you can detect that you have an old file to deal with, you can use
the Split function to split the date using a comma to effect the split.
Then you can reconstitute the date, minus the weekday. Parsedate
should then be able to handle it.
Another similar solution is to use NthField.
Still, you have to lop off the weekday.
All the best.
Post by Lennox JacobThanks Russ and Norman,
I need to explain a little more...
So I have a file that was saved previously, the date of birth was
saved as a long date in RB2005 - Tuesday, August 12, 1980,
apparently that format is not used again in RB2007R1.
"We have updated to using the new APIs apple
provided in 10.4. These APIs don't allow the same formats that
previously were used, and instead use the formats specified in the
International preferences pane. There are four styles: short, medium,
long, and full. For "Abbreviated" we use the "medium" style.
HTH,
Jon"
[input] [input] [input] [input]
So, I now use that date via Parse date to calculate the current age
and since the parsdate format is changed it gives an error -
RB2007R1 is expecting the longdate in the format Tuesday, 12 August
1980.
So, I use a text editor and manually change Tuesday, August 12,
1980 to Tuesday, 12 August 1980 and all is well. When I save and
then reopen there is no problem because the formatting has already
been corrected.
It means that I have to change the date of birth manually when I want to open any old file.
That is what I would like to get done, changing that old format to
the new format, seemlessly, in the background.
Any advice or recommendations.
Thanks again.
Lennox.
Post by Lennox JacobHello,
I have an app that was built with RB2005R2 (MAC PowerPC), I used
longdates a lot and when I saved my files the dates were saved in
the format Tuesday, August 12, 1980.
When I opened my files I would use ParseDate to verify the date and I had no problems.
Now I have built my app in RB2007R1 and I am getting an error
opening my files, apparently RB2007R1 is expecting the dates in the
format Tuesday, 12 August 1980.
How do I get around that?
It dependent on how your long date settings are set in the OS
Not sure of the precise nature of the change from 2005 to 2007 but it
has to do with only using the OS supplied routines
You're not the first to bump into this change
If you change your long date settings in OS X you may be able to
affect this
The other would be to remove the last , from the dates you have when
you read them and then save them in a format that is much easier to
deal with regardless of any other changes that are made to textual
representations of dates and times (ie/ SQLDateTime format)
The other might be to save the totalseconds instead of the actual
date and then you can show it in whatever format you want
_______________________________________________
REAL Software has decided to consolidate this mailing list with the
online Forums. On Monday, February 12, 2007, this mailing list
will no longer be active. We encourage you to continue your
REALbasic and REAL SQL Server discussions on the Forums. If you
are not presently a member of the forum, please sign up today at .
---------------------------------
Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.
_______________________________________________
REAL Software has decided to consolidate this mailing list with the
online Forums. On Monday, February 12, 2007, this mailing list
will no longer be active. We encourage you to continue your
REALbasic and REAL SQL Server discussions on the Forums. If you
are not presently a member of the forum, please sign up today at
<http://forums.realsoftware.com>.