javascript - How to move up the st, nd, rd in the date using c#? -
my output format date 14th may 2015
.
but output want in 14
th
should raise little bit using c#.
strbuilder.appendformat(@"<tr><td>delivery date & time</td><td align='left' style='text-align:left;'>- {0}</td></tr>", (string.isnullorempty(txtdeliverydate.text) ? "" : (string.isnullorempty(txtetime.text) ? common.convertvaliddateformat(txtdeliverydate.text).tostring("dd mmm yyyy") : common.convertvaliddateformat(txtdeliverydate.text).tostring("dd mmm yyyy") + " @ " + txtetime.text)));
the <sup>
tag need.
in event don't want so. can use css
position: relative; top: -0.5em; font-size: 80%;
demo http://jsfiddle.net/j8au1pk3/
also check out this question
Comments
Post a Comment