How to display just the month in a date picker control - vb6

I want to display just the month in datecontrol, like
datecontrol1 = January, February ... december
I dont want to diplay day, year and time.
How to do this?

If you are talking about DTPicker then you can select it's property Format to 3 - dtpCustom and set the 'CustomFormat' to 'MMMM' like this:

If it's the DTPicker control found in Microsoft Windows Common Controls-2, you can set the Format to 3 - dtpCustom and set the CustomFormat to MMMM.

Related

How to show 24 hour time picker in tempusdominus plugin

I'm using this plugin https://tempusdominus.github.io/bootstrap-4/
to insert a datetimepicker. I would display time picker showing time in 24 hours (i.e not showing 02:00 PM but 14:00).
There a way to perform this, with tempusdominus plugin. I follow the guide, but it still display time with AM and PM.
Thanks.
In your jQuery you should set format from LT to
format:'HH:mm';
If you want the date and time just set
format: 'dddd, MMMM Do YYYY, HH:mm';
You can find all your formats at Formats
I had the same problem and I changed the code to:
$('.datePicker').datetimepicker({
format: 'DD/MM/YYYY, HH:mm',
});
and it works now

How to change format of date in smart-table

i'm using Smart-Table in my mean.js app, and i need change format of date values. For default format is "MMM, dd yyyy" and I want to change it to "dd-MM-yyyy". Anybody can help me?
As mentioned in angular documentation you can change the format of the angular date filter
so your markup cood look like
<td>{{myDateValue | date:'dd-MM-yyyy' }}</td>

How to format Dates on Category Axis in amCharts Line Chart?

amCharts Line Chart
When amCharts line chart is zoomed around end of the year, it hides the letter Jan and places the number for Year. [Please refer JSFiddle in the comment below]
Requirement is to have Date format similar to: Nov 2014, Dec 2014, Jan 2015, Feb 2015.
In other words:
How to format Dates on Category Axis similar to below?
OR
Add these two lines in the properties of the categoryAxis.
"boldPeriodBeginning":false,
"markPeriodChange":false,
This should get you the desired solution.
As i'm not allowed to comment other posts yet, i'm posting the JSFiddle i made here.
Note that the answer of Anurag is the correct answer already, so the credits belong to him.I used the dateFormat (as anurag mentioned in his comment) to format the displayed date on the categoryAxis. (see docs)Further i didn't used the "boldPeriodBeginning" because it's already set false by "markPeriodChange".

How do I format dates in a Telerik RadHtmlChart's Tooltip ClientTemplate?

Using UI for ASP.NET AJAX RadHtmlChart feature, In a Column Chart, I am trying to format a date in a Tooltip's ClientTemplate and I can't seem to figure it out.
On the Y-Axis I have dollar amounts, on the X-Axis I have the 24 hours of the day (12am, 1am, 2am, ... 11pm). The X-Axis labels work fine using the following:
<LabelsAppearance DataFormatString="htt" RotationAngle="0" />
Unfortunately, when I use the following ToolTips template the X-Axis value renders as a long format date like Tue Nov 11 2014 03:00:00 GMT-0600 (Central Standard Time) rather than 3AM:
<TooltipsAppearance BackgroundColor="#ffffff" Color="#5ab7de">
<ClientTemplate>
<div><b>#=category#</b></div>
<div>$#=value#</div>
</ClientTemplate>
</TooltipsAppearance>
How do I get #=category= to format my date like this: 4PM?
Well, the answer was buried in a demo on the Telerik site but here's the code I needed:
#= kendo.format(\'{0:htt}\', category) #

Change ChartCursorBalloonText in Javascript Amcharts

Hi i am using javascript AmCharts and this one’s an AmSerialChart. Although we are showing dates in the category axis, the requirement is such that we cannot show them as dates but as strings. Keeping this in mind, I would need to show the chartcursor balloon text as the full date, for example ‘08/05/2013’. How can I achieve this?
i hope i undestood you right.
to let amcharts understand your date format specify dataDateFormat
http://docs.amcharts.com/3/javascriptcharts/AmSerialChart#dataDateFormat
then turn on parseDates in the categoryAxis to enable the date parsing
http://docs.amcharts.com/3/javascriptcharts/CategoryAxis#parseDates
you might want to format the category axis as well
http://docs.amcharts.com/3/javascriptcharts/CategoryAxis#minPeriod
http://docs.amcharts.com/3/javascriptcharts/CategoryAxis#dateFormats
and here the latest step to format the chart cursor which you've asked for
http://docs.amcharts.com/3/javascriptcharts/ChartCursor#categoryBalloonDateFormat
I hope that will help you :)

Resources