Convert Date Field to YYYY-MM-DD

Thanks Jim I'll give that a try


On Monday, November 25, 2013 2:48 PM, "jckinneman@..." <jckinneman@...> wrote:
 
<div id="ygrps-yiv-1388489865yiv4428492013ygrp-text">
  
  
  <div>You may need to break it up into the components and them put it together the way you want.</div><div><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">MyDate = String(Year(checkhed.checkdate)) + &quot;/&quot; + string(Month(checkhed.checkdate), &quot;99&quot;) + &quot;/&quot; + String(Day(checkhed.checkdate), &quot;99&quot;).</div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br clear="none"></div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;">Syntax may need a little tweaking.</div><div style="color:rgb(0, 0, 0);font-size:13px;font-family:arial, helvetica, clean, sans-serif;background-color:transparent;font-style:normal;"><br

clear=“none”>

Jim Kinneman
Encompass Solutions, Inc


—In vantage@yahoogroups.com, <mjfw2003@…> wrote:

I have a calculated field to convert checkhed.checkdate to YYYY/MM/DD. Based on other postings I tried
STRING(ISO-DATE(Checkhed.Checkdate)) but getting a SQL  Server Native client error

Can anyone tell me the correct expression?


</div>
 


<div class="ygrps-yiv-1388489865yiv4428492013yqt3240728824" id="ygrps-yiv-1388489865yiv4428492013yqt69384"><div style="color:#fff;height:0;"></div></div>
#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013 -- #ygrps-yiv-1388489865yiv4428492013ygrp-mkp { border:1px solid #d8d8d8;font-family:Arial;margin:10px 0;padding:0 10px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mkp hr {
border:1px solid #d8d8d8;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mkp #ygrps-yiv-1388489865yiv4428492013hd {
color:#628c2a;font-size:85%;font-weight:700;line-height:122%;margin:10px 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mkp #ygrps-yiv-1388489865yiv4428492013ads {
margin-bottom:10px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mkp .ygrps-yiv-1388489865yiv4428492013ad {
padding:0 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mkp .ygrps-yiv-1388489865yiv4428492013ad p {
margin:0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mkp .ygrps-yiv-1388489865yiv4428492013ad a {
color:#0000ff;text-decoration:none;}
#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-sponsor #ygrps-yiv-1388489865yiv4428492013ygrp-lc {
font-family:Arial;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-sponsor #ygrps-yiv-1388489865yiv4428492013ygrp-lc #ygrps-yiv-1388489865yiv4428492013hd {
margin:10px 0px;font-weight:700;font-size:78%;line-height:122%;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-sponsor #ygrps-yiv-1388489865yiv4428492013ygrp-lc .ygrps-yiv-1388489865yiv4428492013ad {
margin-bottom:10px;padding:0 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013actions {
font-family:Verdana;font-size:11px;padding:10px 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013activity {
background-color:#e0ecee;float:left;font-family:Verdana;font-size:10px;padding:10px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013activity span {
font-weight:700;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013activity span:first-child {
text-transform:uppercase;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013activity span a {
color:#5085b6;text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013activity span span {
color:#ff7900;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013activity span .ygrps-yiv-1388489865yiv4428492013underline {
text-decoration:underline;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013attach {
clear:both;display:table;font-family:Arial;font-size:12px;padding:10px 0;width:400px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013attach div a {
text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013attach img {
border:none;padding-right:5px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013attach label {
display:block;margin-bottom:5px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013attach label a {
text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 blockquote {
margin:0 0 0 4px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013bold {
font-family:Arial;font-size:13px;font-weight:700;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013bold a {
text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 dd.ygrps-yiv-1388489865yiv4428492013last p a {
font-family:Verdana;font-weight:700;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 dd.ygrps-yiv-1388489865yiv4428492013last p span {
margin-right:10px;font-family:Verdana;font-weight:700;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 dd.ygrps-yiv-1388489865yiv4428492013last p span.ygrps-yiv-1388489865yiv4428492013yshortcuts {
margin-right:0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013attach-table div div a {
text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013attach-table {
width:400px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013file-title a, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013file-title a:active, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013file-title a:hover, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013file-title a:visited {
text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013photo-title a, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013photo-title a:active, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013photo-title a:hover, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div.ygrps-yiv-1388489865yiv4428492013photo-title a:visited {
text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 div#ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg #ygrps-yiv-1388489865yiv4428492013ygrp-msg p a span.ygrps-yiv-1388489865yiv4428492013yshortcuts {
font-family:Verdana;font-size:10px;font-weight:normal;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013green {
color:#628c2a;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013MsoNormal {
margin:0 0 0 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 o {
font-size:0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013photos div {
float:left;width:72px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013photos div div {
border:1px solid #666666;height:62px;overflow:hidden;width:62px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013photos div label {
color:#666666;font-size:10px;overflow:hidden;text-align:center;white-space:nowrap;width:64px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013reco-category {
font-size:77%;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013reco-desc {
font-size:77%;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 .ygrps-yiv-1388489865yiv4428492013replbq {
margin:4px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-actbar div a:first-child {
margin-right:2px;padding-right:5px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg {
font-size:13px;font-family:Arial, helvetica, clean, sans-serif;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg table {
font-size:inherit;font:100%;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg select, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 input, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 textarea {
font:99% Arial, Helvetica, clean, sans-serif;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg pre, #ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 code {
font:115% monospace;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg * {
line-height:1.22em;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-mlmsg #ygrps-yiv-1388489865yiv4428492013logo {
padding-bottom:10px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-msg p a {
font-family:Verdana;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-msg p#ygrps-yiv-1388489865yiv4428492013attach-count span {
color:#1E66AE;font-weight:700;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-reco #ygrps-yiv-1388489865yiv4428492013reco-head {
color:#ff7900;font-weight:700;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-reco {
margin-bottom:20px;padding:0px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-sponsor #ygrps-yiv-1388489865yiv4428492013ov li a {
font-size:130%;text-decoration:none;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-sponsor #ygrps-yiv-1388489865yiv4428492013ov li {
font-size:77%;list-style-type:square;padding:6px 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-sponsor #ygrps-yiv-1388489865yiv4428492013ov ul {
margin:0;padding:0 0 0 8px;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-text {
font-family:Georgia;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-text p {
margin:0 0 1em 0;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-text tt {
font-size:120%;}

#ygrps-yiv-1388489865 #ygrps-yiv-1388489865yiv4428492013 #ygrps-yiv-1388489865yiv4428492013ygrp-vital ul li:last-child {
border-right:none !important;}
#ygrps-yiv-1388489865



I have a calculated field to convert checkhed.checkdate to YYYY/MM/DD. Based on other postings I tried STRING(ISO-DATE(Checkhed.Checkdate)) but getting a SQL  Server Native client error

Can anyone tell me the correct expression?


You may need to break it up into the components and them put it together the way you want.


MyDate = String(Year(checkhed.checkdate)) + "/" + string(Month(checkhed.checkdate), "99") + "/" + String(Day(checkhed.checkdate), "99").


Syntax may need a little tweaking.


Jim Kinneman

Encompass Solutions, Inc



---In vantage@yahoogroups.com, <mjfw2003@...> wrote:

I have a calculated field to convert checkhed.checkdate to YYYY/MM/DD. Based on other postings I tried STRING(ISO-DATE(Checkhed.Checkdate)) but getting a SQL  Server Native client error

Can anyone tell me the correct expression?