Jump to content
UBot Underground

Fill A Ui Textbox With Partial Text


Recommended Posts

Hi guys I have a ui text box which i need to fill with a date as in dd/mm/yyyy

this gets passed to a element

 

What I am trying to achieve is I need only to put the day in as like 23

 

and use code to add that to /03/2015

 

so i have 23/03/2015

I am sure i probable use variables but not knowing how to go about it

this is the code for the textbox

ui text box("Date (format: 05/01/2015)",#dateSelect)

any help will be appreciated you can be sure

Regards

Graham

Link to post
Share on other sites

You can get the plugin date time manipulation at ubotdev.com it's free

 

and try this

 

 

ui text box("Date (format: 05/01/2015)",#dateSelect)
set(#DT,$plugin function("DateTime Manipulation.dll""$datetime manipulation"#dateSelect"MM/dd/yyyy""dd/MM/yyyy""en-US""en-US"),"Global")
alert(#DT)

 

CD

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...