Click here to Skip to main content
15,894,410 members
Home / Discussions / ASP.NET
   

ASP.NET

 
QuestionOpen Source Reporting Tools in .Net Pin
meeram3931-Oct-14 23:19
professionalmeeram3931-Oct-14 23:19 
AnswerRe: Open Source Reporting Tools in .Net Pin
Peter Leow31-Oct-14 23:35
professionalPeter Leow31-Oct-14 23:35 
GeneralRe: Open Source Reporting Tools in .Net Pin
meeram395-Nov-14 21:11
professionalmeeram395-Nov-14 21:11 
Questionhow to redirect pages in asp.net usint c# Pin
manvapradhan30-Oct-14 23:42
professionalmanvapradhan30-Oct-14 23:42 
AnswerRe: how to redirect pages in asp.net usint c# Pin
member1000031-Oct-14 23:23
member1000031-Oct-14 23:23 
GeneralRe: how to redirect pages in asp.net usint c# Pin
keyboard warrior4-Nov-14 5:21
keyboard warrior4-Nov-14 5:21 
AnswerRe: how to redirect pages in asp.net usint c# Pin
shaluIT8-Nov-14 14:29
shaluIT8-Nov-14 14:29 
QuestionSmall ordinals? Pin
Member 876166730-Oct-14 11:18
Member 876166730-Oct-14 11:18 
Hello

The following produces a date in this ordinal format:

30th October 2014:

Function ReturnDate() As String

        Dim theDate As String = ""

        Dim NumericDayofMonth As Integer = Date.Now.Day
        Dim OrdinalSuffix As String = ""

        Select Case NumericDayofMonth
            Case 1, 21, 31
                OrdinalSuffix = "st"
            Case 2, 22
                OrdinalSuffix = "nd"
            Case 3, 23
                OrdinalSuffix = "rd"
            Case Else
                OrdinalSuffix = "th"
        End Select

        Dim NumericMonthofYear As Integer = Date.Now.Month
        Dim MonthofYear As String = ""

        Select Case NumericMonthofYear
            Case 1
                MonthofYear = "January"
            Case 2
                MonthofYear = "February"
            Case 3
                MonthofYear = "March"
            Case 4
                MonthofYear = "April"
            Case 5
                MonthofYear = "May"
            Case 6
                MonthofYear = "June"
            Case 7
                MonthofYear = "July"
            Case 8
                MonthofYear = "August"
            Case 9
                MonthofYear = "September"
            Case 10
                MonthofYear = "October"
            Case 11
                MonthofYear = "November"
            Case 12
                MonthofYear = "December"
        End Select

        'Dim NumericDayofWeek As Integer = Date.Now.DayOfWeek
        'Dim DayofWeek As String = ""

        'Select Case NumericDayofWeek
        '    Case 1
        '        DayofWeek = "Monday"
        '    Case 2
        '        DayofWeek = "Tuesday"
        '    Case 3
        '        DayofWeek = "Wednesday"
        '    Case 4
        '        DayofWeek = "Thursday"
        '    Case 5
        '        DayofWeek = "Friday"
        '    Case 6
        '        DayofWeek = "Saturday"
        '    Case 7
        '        DayofWeek = "Sunday"
        'End Select

        'theDate &= DayofWeek & " " 'Monday, Tuesday, Wednesday etc
        theDate &= DateTime.Now.Day.ToString() '1, 2, 3, 4 etc
        theDate &= OrdinalSuffix & " " 'st, nd, rd, th
        theDate &= MonthofYear & " " 'Jan, Feb etc
        theDate &= DateTime.Now.Year.ToString() '2013, 2014 etc

        Return theDate
    End Function


and then, in a sub page_load:

LblDate.Text = ReturnDate()


But how would I make the 'st', 'nd', 'rd', and 'th' small and raised, just as you would find in a letter?

Thank you.

Blue
AnswerRe: Small ordinals? Pin
jkirkerx30-Oct-14 12:00
professionaljkirkerx30-Oct-14 12:00 
GeneralRe: Small ordinals? Pin
Member 876166730-Oct-14 12:18
Member 876166730-Oct-14 12:18 
AnswerRe: Small ordinals? Pin
jkirkerx30-Oct-14 12:32
professionaljkirkerx30-Oct-14 12:32 
GeneralRe: Small ordinals? Pin
Rajesh waran30-Oct-14 20:25
professionalRajesh waran30-Oct-14 20:25 
AnswerRe: Small ordinals? Pin
Richard Deeming30-Oct-14 12:44
mveRichard Deeming30-Oct-14 12:44 
GeneralRe: Small ordinals? Pin
Member 876166730-Oct-14 12:51
Member 876166730-Oct-14 12:51 
QuestionAsp.net Postback Pin
Zeyad Jalil30-Oct-14 1:02
professionalZeyad Jalil30-Oct-14 1:02 
AnswerRe: Asp.net Postback Pin
Peter Leow30-Oct-14 1:12
professionalPeter Leow30-Oct-14 1:12 
QuestionModalPopupExtender popup Problem Pin
murali_utr28-Oct-14 18:58
murali_utr28-Oct-14 18:58 
QuestionRe: ModalPopupExtender popup Problem Pin
ZurdoDev29-Oct-14 10:02
professionalZurdoDev29-Oct-14 10:02 
AnswerRe: ModalPopupExtender popup Problem Pin
murali_utr29-Oct-14 17:18
murali_utr29-Oct-14 17:18 
AnswerRe: ModalPopupExtender popup Problem Pin
jkirkerx29-Oct-14 11:49
professionaljkirkerx29-Oct-14 11:49 
GeneralRe: ModalPopupExtender popup Problem Pin
murali_utr29-Oct-14 17:18
murali_utr29-Oct-14 17:18 
GeneralRe: ModalPopupExtender popup Problem Pin
jkirkerx30-Oct-14 10:23
professionaljkirkerx30-Oct-14 10:23 
AnswerRe: ModalPopupExtender popup Problem Pin
ClimerChinna2-Nov-14 21:49
ClimerChinna2-Nov-14 21:49 
QuestionZip code Pin
byka27-Oct-14 5:53
byka27-Oct-14 5:53 
GeneralRe: Zip code Pin
PIEBALDconsult27-Oct-14 6:19
mvePIEBALDconsult27-Oct-14 6:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.