Current time added on oh-my-zsh theme gnzh not updaing - oh-my-zsh

I have added Current Time in oh-my-zsh gnzh theme:
It's looking great on the terminal. However, the time in not updating on the prompt.
I want to insert the date only in this position as giving date at starting with PROMPT will destroy the alignment of the arrows.

Related

How can the circle be removed from the date in v-date-checker?

I have a v-date-checker set to disable current and future dates. So, the current date is one day behind and that's fine, but the current date circle is still showing up. I'd like to remove that.
I've tried styling the individual date color and border using scss and /deep/ but nothing seems to target that circle border.

Default value in an iterationcombo box

Is there any way i can have the current iteration selected (based on the current month/date and comparing it with the start/end dates of the iteration that fall in that month) when the iteration box is loaded. This is to avoid having the user select the iteration and that "change" event then triggering my custom app.
In short i need to configure the iteration combo box to always default to the current iteration, and treat this default as a change event and have the app execute the on ready/change function.
This should be the default behavior:
https://help.rallydev.com/apps/2.1/doc/#!/api/Rally.ui.combobox.TimeboxComboBox-cfg-defaultToCurrentTimebox
Is it not behaving that way? Maybe you can share a bit more code?

VB .net datetimepicker reporting wrong value

Ok, so I'm experiencing some strange behavior in datetimepicker fields in my program. I use Short format usually, and use a pair of them for date range selections.
The problem i'm experiencing is if a user is using the keyboard for input. they can tab and arrow through the field like normal to key in a date. However if the date part they are entering doesn't fill it's section of the mask and then they press enter to activate the formdefault without shifting focus away from that portion of the date, then the value of the DTP when the ok_button.click event is run is whatever value it had in it BEFORE they typed their change.
to give a specific example:
A user tabs into the date field. the default date in the field is today's date, 4/14/2015. They type in 1, arrow to the day, put in 1, then arrow to the year and type 14, then press enter. The reported value of the DTP is going to be 1/1/2015. Had they instead actually typed out 2015, or used the arrow to move to another date part or tab to shift focus to another control, the DTP will auto update to fill in the rest of the year.
The same problem would exist if they had typed in a 1 for the month and then hit enter, but would NOT happen if they put in a 12 for the month.
The only solution I can think of, and I haven't yet tried to implement it because it sounds like a real kludge and would require me to go through at TON of forms in the project, would be to change the keypress event for enter to shift focus to the OK button, and THEN invoke the formdefault.
I will say that most of the datetimepicker fields on my forms are actually contained within a user control, so if this is a property that can be changed in the control or tied to an event in the control, it would make updating much, MUCH easier.

How to remove time section from date time picker?

I am currently using Microsoft Visual Studio Express 2013 for Windows desktop with an SQL back-end. I am trying to run an SQL query that will have the date time in format "yyyy-mm-dd." My problem is I need to see all entries from that date. Currently my date time picker keeps giving me a time with my selection. I need to remove the time portion. I tried a couple of solutions from the web but when I try and display the date time picker in a message box to see what the value is it says false. I am not sure how to change the output value in the custom field to remove this. Here is my code.
This is in on my load event:
'date time picker set up
DTPPromiseDate.Format = DateTimePickerFormat.Custom
DTPPromiseDate.CustomFormat = "yyyy-MM-dd"
Then in a button click event, is a message box to display what was selected in the date time picker. I want to get my message box working correctly before I try and run SQL queries with it.
MsgBox(DTPPromiseDate.Value)
-------------------------UPDATE-----------------
This code appeared as I wanted it to but I am still trying to work it into my query.
DTPPromiseDate.Value.ToString("yyyy-MM-dd")
Apply the formatting string that you used in the picker's custom format to the message box text as well.

How to set click event for datepicker in android

I've just created default datepicker from the link http://www.androidpeople.com/android-datepicker-dialog-example .Its working fine.But my problem is when i click date button.,it shown up..and i change the date and click cancel button on date alert.Again when i click date button.,it should shown current date..not previously changed date. i.e.i just need to get current date at each click whatever the date change.
my solve method may be not the better:when you call OnDateSetListener(),you should save the first date,so when you chick the cancen button,you shululd recover it