Sign in to follow this  
Followers 0
Madza91

Date format

3 posts in this topic

Hi, i don't know how to set format dd.MM.yyyy but to works Guictrlsetdata($date,"dd.MM.yyyy")

Simple, i want to set date from ini and to be dd.MM.yyyy :P

Here is my script:

#include <GuiConstants.au3>

$ini = Iniread("asd.ini","asd","date","")

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$Label_1 = GuiCtrlCreateLabel($ini, 30, 30, 150, 20)
$date = GUICtrlCreateDate($ini, 17, 70, 98, 20, $dts_shortdateformat)
Guictrlsetdata($date,"1999/05/20") ; i want Guictrlsetdata($date,"dd.MM.yyyy")

GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        ;;;
    EndSelect
WEnd
ExitoÝ÷ Ù«xºÚ"µÍØÙB]OL
K
KNNN

[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites



Try this

#include <GuiConstants.au3>
$ini = Iniread("asd.ini","asd","date","")

GuiCreate("MyGUI", 392, 316,-1, -1 , BitOR($WS_OVERLAPPEDWINDOW, $WS_CLIPSIBLINGS))
$Label_1 = GuiCtrlCreateLabel($ini, 30, 30, 150, 20)
$aDate = StringSplit($ini, ".")
$date = GUICtrlCreateDate($aDate[3] & "." & $aDate[2] & "." & $aDate[1], 17, 70, 98, 20, $dts_shortdateformat)
GuiSetState()
While 1
    $msg = GuiGetMsg()
    Select
    Case $msg = $GUI_EVENT_CLOSE
        ExitLoop
    Case Else
        ;;;
    EndSelect
WEnd
Exit

Share this post


Link to post
Share on other sites

that is very easy :P

tnx ;D


[quote name='dbzfanatic' post='609696' date='Nov 26 2008, 08:46 AM']This is a help forum not a "write this for me" forum.[/quote](Sorry for bad English) :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0