# Headsupdisplay The Date On Win Xp

**URL:** https://forum.highend3d.com/t/headsupdisplay-the-date-on-win-xp/2744
**Category:** Maya
**Tags:** mel
**Created:** [October 20, 2006, 1:17am UTC](https://forum.highend3d.com/t/headsupdisplay-the-date-on-win-xp/2744 "2006-10-20T01:17:13Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![clapperboy](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/c/87869e/32.png) [@clapperboy](https://forum.highend3d.com/u/clapperboy)
#### Post date: [October 20, 2006, 1:17am UTC](https://forum.highend3d.com/t/headsupdisplay-the-date-on-win-xp/2744/1 "2006-10-20T01:17:13Z")

</div>

i'm looking for an easier any easy way to get the date in a string so i cant call it up in a hud?

so far I use

global proc string getDate()  
{  
string $date =`system ("date /t")`;  
 $date = startString($date, 14);  
 return $date;  
}

headsUpDisplay -s 4 -b 0 -ba "right" -c "getDate()" -bs "medium" -dfs "large" HUDDate;

but im getting mix result on different windows machine.  
it works on some of them...

thanks

---

<div class="post-metadata">

### Author: ![joojaa](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/j/5daacb/32.png) [@joojaa](https://forum.highend3d.com/u/joojaa)
#### Post date: [October 20, 2006, 6:34am UTC](https://forum.highend3d.com/t/headsupdisplay-the-date-on-win-xp/2744/2 "2006-10-20T06:34:23Z")

</div>

date command is dependent on sytem locale. So a finnish machine would show the finish way ofdisplaying date whala ao0ne set to be in manerica sohows the american way wich is reverse in day and mith form what some other couuntries have.

Its a sytem preference.

dontg use $date = startString($date, 14); royugh but use strip or split instead and drop the later values because the length varies

---

<div class="post-metadata">

### Author: ![rob-bateman](https://forum.highend3d.com/letter_avatar_proxy/v4/letter/r/4491bb/32.png) [@rob-bateman](https://forum.highend3d.com/u/rob-bateman)
#### Post date: [October 20, 2006, 10:24am UTC](https://forum.highend3d.com/t/headsupdisplay-the-date-on-win-xp/2744/3 "2006-10-20T10:24:33Z")

</div>

CODE  
global proc string getDate() {  
&nbsp;&nbsp; return `about -currentDate`;  
}
