[thelist] Way to trim WeekDayName in ASP?
Pringle, Ron
RPringle at aurora-il.org
Mon Feb 7 16:18:18 CST 2005
TY, works perfectly! And yes, VBScript.
The case appears to default to UC for the first letter, so no worries there.
If I'd had more sleep, I might've remembered those trim functions myself!
Regards,
Ron
> Hi Ron,
>
> To get the first letter of any string in VBScript (which
> is what I assume you're using for Classic ASP), just use the
> Left function:
>
> myWeekDayName = Left(myWeekDayName, 1)
>
> If you're worried about case, you can use UCase on it as well.
>
> Cheers,
>
> Peter
>
> From: "Pringle, Ron" RPringle at aurora-il.org
>
> Is there a way to trim the values returned by WeekDayName in
> ASP down to
> just the first letter of each week day?
>
> I have a calendar and currently it displays the abbreviated
> week days (Mon,
> Tues, etc.). I'd like to just display the first letter
> instead (M,T,W etc.).
>
> Ron
More information about the thelist
mailing list