on SSRS report I need to show todays date and current time
i tried this =FormatDateTime(Now,"MM/dd/yyyy hh:mm tt")
but this is not working for me giving an error.
Anyone please help me for expression
?
I want output display like 4/12/2013 12:05 PM
If the date and time is in its own cell (aka textbox), then you should look at applying the format to the entire textbox. This will create cleaner exports to other formats; in particular, the value will export as a datetime value to Excel instead of a string.
Use the properties pane or dialog to set the format for the textbox to "MM/dd/yyyy hh:mm tt"
I would only use Ian's answer if the datetime is being concatenated with another string.
If you click on the empty spot on the report away from any table and then look in properties, one of the Misc fields is called Language which allows you to pick which Language you would like to set, which after doing so can play around with this
Which
x
can be 1, 2, 3, 4, 5I am using following in SSRS 2005
Or
Based on comment:
OR
In SSRS 2016 There is an option under the properties header "Localization" called "
Calendar
", if you click on this it gives you these 2 options:This works brilliantly when referencing data from a tables aswell
alternatively if this does not work for you, specify one of these formats under "Number" and in the cell "
Format
":dd/MM/yyyy
orMM/dd/yyyy
printscreen
hi friend please try this expression your report
Output: