<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
/* Font Definitions */
@font-face
        {font-family:Helvetica;
        panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.apple-style-span
        {mso-style-name:apple-style-span;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=EN-US link=blue vlink=purple>
<div class=Section1>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Can’t tell you how many hours in my IT career I’ve
spent sorting out date and date formats.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Far to many.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Where “10/09/08” could be three different dates
depending on the format.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>But, once vDateFomat is set that’s it.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Until you or something else resets it to another value by intent
or mistake.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>i.e. via legacy code or via vStudio etc.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>So I always set it just after each openDB in my project Admin
app.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>And never set it in my project client app.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I could place a check in my client app.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>And change it back if needed or send a message to the db admin
etc.<o:p></o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>
<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>
<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
valentina-studio-bounces+barry=noodlebox.com.au@lists.macserve.net [mailto:valentina-studio-bounces+barry=noodlebox.com.au@lists.macserve.net]
<b>On Behalf Of </b>william humphrey<br>
<b>Sent:</b> Wednesday, 23 July 2008 4:58 AM<br>
<b>To:</b> valentina-studio@lists.macserve.net<br>
<b>Subject:</b> Re: Setting system date to yyyy-mm-dd permanently<o:p></o:p></span></p>
</div>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>Should this property always be set when you open the
database, everytime? <o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>I haven't seen any examples of anyone doing this in a
Runtime Revolution use of Valentina and my present use of it on the Intel
platform seems to be fine. But the lack of examples seen is not anything new.<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>Would the following be corect?<o:p></o:p></p>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal>In Runtime Revolution would you do:<o:p></o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p class=MsoNormal><o:p> </o:p></p>
</div>
<div>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'>on mouseUp pMouseBtnNo</span></i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> get valentina_Init(
10 * 1024 * 1024,"extremely_way_long_serial_number",,)</span></i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> DatabaseOpen</span></i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span class=apple-style-span><i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif";color:#142B86'>end
mouseUp</span></i></span><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'><o:p> </o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'>on DatabaseOpen</span></i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt;min-height: 14.0px'><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p> </o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> put
VDatabase_Constructor() into gDatabase</span></i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> -- Build db full
path near to stack:</span></i><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> get the effective
filename of this stack</span></i><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> set the itemdel to
slash</span></i><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> put the (item 1 to
-2 of it) & slash & "MyDatabase.vdb" into dbPath</span></i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> get VDatabase_Open(
gDatabase, dbPAth )</span></i><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'> -- Put the make
sure system date is set stuff here?</span></i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:8.5pt;
font-family:"Arial","sans-serif";color:#142B86'> VDatabase_DateFormat( </span></i><span
class=apple-style-span><i><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:#142B86'>gDatabase</span></i></span><i><span style='font-size:8.5pt;
font-family:"Arial","sans-serif";color:#142B86'>,"kYMD" ) --
specifies the format of date.</span></i><span style='font-size:8.5pt;
font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:8.5pt;
font-family:"Arial","sans-serif";color:#142B86'> VDatabase_DateSep( </span></i><span
class=apple-style-span><i><span style='font-size:9.0pt;font-family:"Helvetica","sans-serif";
color:#142B86'>gDatabase</span></i></span><i><span style='font-size:8.5pt;
font-family:"Arial","sans-serif";color:#142B86'>f, "-" ) -- separator
for date</span></i><span style='font-size:8.5pt;font-family:"Arial","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span class=apple-style-span><i><span
style='font-size:10.0pt;font-family:"Arial","sans-serif";color:#142B86'> --
Always set the date format everytime you open the database?</span></i></span><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><i><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif";color:#142B86'>end DatabaseOpen</span></i><span
style='font-size:9.0pt;font-family:"Helvetica","sans-serif"'><o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'><o:p> </o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'>Thanks for your help...<o:p></o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'><o:p> </o:p></span></p>
<p style='margin:0in;margin-bottom:.0001pt'><span style='font-size:9.0pt;
font-family:"Helvetica","sans-serif"'>Bill<o:p></o:p></span></p>
<p class=MsoNormal><o:p> </o:p></p>
<div>
<p class=MsoNormal>On Tue, Jul 22, 2008 at 2:17 PM, Joseph Morgan <<a
href="mailto:joseph@checkos.com">joseph@checkos.com</a>> wrote:<o:p></o:p></p>
<p class=MsoNormal>I thought you have to set the date for the database each
time you open<br>
it no matter what. I always use yyyy-mm-dd. But no matter the<br>
platform, the date always reverts to something else. This is the case<br>
in vstudio and outside of vstudio (ie. realbasic or perhaps runrev). I<br>
don't think this is a bug as I am pretty sure I recall Ruslan stating<br>
that this was the intended behavior. I always run the following sql<br>
command on any database right after opening it and it always works for<br>
me:<br>
<br>
SET PROPERTY DateTimeFormat,DateSeparator,TimeSeparator OF DATABASE TO<br>
'kYMD','-',':';<br>
<br>
You may want to check out the wiki for more info but I think kMDY<br>
would give you the mm/dd/yy dates then set your date separator and<br>
that should work.<br>
<br>
<br>
Joseph<o:p></o:p></p>
<div>
<div>
<p class=MsoNormal><br>
On Jul 22, 2008, at 12:17 PM, william humphrey wrote:<br>
<br>
> To add to system date and Valentina Studio date "funkiness". On
an<br>
> Intel Mac which has the U.S. system date (no attempt to set a custom<br>
> system date to match YYYY-MM-DD there is no problem with the<br>
> settings in Valentina Studio and the settings in the database<br>
> changing by themselves back to mm/dd/yy.<br>
><br>
> But it appears to happen on the older G4 Mac even to a database that<br>
> is moved back and forth and used in RunRev without opening it in<br>
> vStudio. There is no way I can report this to Mantis yet as I<br>
> haven't figured out exactly what is causing the database to change<br>
> the date settings on their own back to mm/dd/yy but it is an<br>
> important bug as all sorts of crashes result when the data in the<br>
> date fields are formated yyyy-mm-dd and the database is expecting<br>
> them to be mm/dd/yy.<br>
><br>
> Has anyone else encountered this date setting weirdness? For me it<br>
> is limited to the G4 mac running OS 10.4 and does not happen on the<br>
> Intel Mac running OS 10.5<o:p></o:p></p>
</div>
</div>
<p class=MsoNormal>> _______________________________________________<br>
> Valentina-studio mailing list<br>
> <a href="mailto:Valentina-studio@lists.macserve.net">Valentina-studio@lists.macserve.net</a><br>
> <a href="http://lists.macserve.net/mailman/listinfo/valentina-studio"
target="_blank">http://lists.macserve.net/mailman/listinfo/valentina-studio</a><br>
<br>
_______________________________________________<br>
Valentina-studio mailing list<br>
<a href="mailto:Valentina-studio@lists.macserve.net">Valentina-studio@lists.macserve.net</a><br>
<a href="http://lists.macserve.net/mailman/listinfo/valentina-studio"
target="_blank">http://lists.macserve.net/mailman/listinfo/valentina-studio</a><o:p></o:p></p>
</div>
<p class=MsoNormal><br>
<br clear=all>
<br>
-- <br>
<a href="http://www.bluewatermaritime.com">http://www.bluewatermaritime.com</a>
<o:p></o:p></p>
</div>
</div>
</div>
</div>
</body>
</html>