Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8451

Re: Date for Month year only?

$
0
0

Hi Paul,

 

You can create a formula like:

 

ToText ({?StartDateParam}, "MM/yyyy");

 

This will return a string like "06/2014".

 

You can also parse the date parts out of the parameters and format the display how you want:

 

NumberVar myYear;

NumberVar myMonth;

NumberVar myDay;

 

myYear := Year ({?StartDateParam});

myMonth := Month ({?StartDateParam});

myDay := Day ({?StartDateParam});

 

ToText (myMonth, 0, "", "") & "/" & ToText (myYear, 0, "", "");

 

This gives you the same results as the first one.

 

Hope this helps,

Brian


Viewing all articles
Browse latest Browse all 8451

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>