Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following code which converts some textbox text into the
format i need mydatestr = Format(CDate(TextBox2.Text), "dd-mmm-yy") what i also need is to get todays date and put that into the same format as well but substituting textbox2.text for TODAY doesnt seem to work. --- Message posted from http://www.ExcelForum.com/ |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi neowok!
Use: mydatestr = Format(Date, "dd-mmm-yy") -- Regards Norman Harker MVP (Excel) Sydney, Australia Excel and Word Function Lists (Classifications, Syntax and Arguments) available free to good homes. "neowok " wrote in message ... I have the following code which converts some textbox text into the format i need mydatestr = Format(CDate(TextBox2.Text), "dd-mmm-yy") what i also need is to get todays date and put that into the same format as well but substituting textbox2.text for TODAY doesnt seem to work. --- Message posted from http://www.ExcelForum.com/ |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
In VBA, DATE is equivalent to Today in the worksheet
mydatestr1 = Format(CDate(Date), "dd-mmm-yy") -- Regards, Tom Ogilvy "neowok " wrote in message ... I have the following code which converts some textbox text into the format i need mydatestr = Format(CDate(TextBox2.Text), "dd-mmm-yy") what i also need is to get todays date and put that into the same format as well but substituting textbox2.text for TODAY doesnt seem to work. --- Message posted from http://www.ExcelForum.com/ |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Need help with converting CUSTOM format/TEXT format to DATE format | Excel Worksheet Functions | |||
Conditional Format <=Today() | Excel Worksheet Functions | |||
Conditional Format <=Today() | Excel Worksheet Functions | |||
MM/DD/YYYY format Today | Excel Discussion (Misc queries) | |||
Custom Format for WEEKNUM(Today()) | Excel Discussion (Misc queries) |