Date Formats

  • I searched but found many different formats, but not the one I'm looking for. Anyone know the syntax for this date format, October 1, 2010.

    I used this one, FormatDateTime(Parameters!EndDate.Value, 1) ....but this includes the name of day, which I dont need.

    Thanks!

  • You will probably have to pull the date apart into pieces and then concatentate the pieces as strings using functions like MonthName, Day and Year.

  • For what it is worth, here is how to return what you desire using T-SQL

    SELECT DATENAME (mm ,GETDATE()) + ' ' + CAST(DATEPART (dd, GETDATE()) AS

    VARCHAR(2)) + ', ' + CAST(DATEPART (yy, GETDATE()) AS VARCHAR(4))

    Returns: October 7, 2010

    If everything seems to be going well, you have obviously overlooked something.

    Ron

    Please help us, help you -before posting a question please read[/url]
    Before posting a performance problem please read[/url]

  • In the format properties of whatever control is displaying the date, put this: MMMM dd, yyyy

Viewing 4 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply